mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-15 17:55:15 -10:00
Automatic update from web-platform-tests
CSS highlight painting: improve WPT cases (2)
This patch:
• introduces a line-height:1 fix (.highlight_reftest) in a support
stylesheet, and applies it to 19 reftests
• removes five reftests that now pass from TestExpectations (exactly
the ones mentioning bug 1078474, which resolves that bug)
• corrects c/c/highlight-painting-003.html as per csswg-drafts#6022
• fixes some discrepancies between c/c/selection-overlay-and-* and
their reference pages (and each other)
• documents helpers and best practices for writing highlight reftests
(see c/c/{README.md,support/{highlights.css,selections.js}})
Bug: 1078474
Change-Id: I2bd7e00a7b6fd4b6145a284d5f947c81826c5b25
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2706442
Commit-Queue: Delan Azabani <[email protected]>
Reviewed-by: Rune Lillesveen <[email protected]>
Reviewed-by: Yoshifumi Inoue <[email protected]>
Cr-Commit-Position: refs/heads/master@{#873614}
--
wpt-commits: eb73a251ab05f4e28a6aba9e746ec978b7dceb11
wpt-pr: 28558
21 lines
554 B
HTML
21 lines
554 B
HTML
<!DOCTYPE html>
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
<title>CSS Reftest Reference</title>
|
|
|
|
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
|
|
|
|
<link rel="stylesheet" href="../support/highlights.css">
|
|
<style>
|
|
div
|
|
{
|
|
color: green;
|
|
font-size: 300%;
|
|
}
|
|
</style>
|
|
|
|
<p>Test passes if each glyph of "Selected Text" is green, if background color of each glyph of "Selected Text" is white and if there is <strong>no red</strong>.
|
|
|
|
<div class="highlight_reftest">Selected Text</div>
|