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
49 lines
1.4 KiB
HTML
49 lines
1.4 KiB
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
|
|
{
|
|
background-color: Highlight;
|
|
color: HighlightText;
|
|
display: inline;
|
|
font-size: 300%;
|
|
text-decoration: HighlightText underline;
|
|
}
|
|
</style>
|
|
|
|
<!--
|
|
"
|
|
The element's own text decorations (both line decorations
|
|
and emphasis marks) are thus drawn in the pseudo-element's
|
|
own color when that is not currentColor, regardless of
|
|
their original color or fill specifications.
|
|
"
|
|
coming from
|
|
https://www.w3.org/TR/css-pseudo-4/#highlight-painting
|
|
|
|
Highlight
|
|
Background of item(s) selected in a control.
|
|
https://www.w3.org/TR/css-color-4/#valdef-system-color-highlight
|
|
|
|
HighlightText
|
|
Text of item(s) selected in a control.
|
|
https://www.w3.org/TR/css-color-4/#valdef-system-color-highlighttext
|
|
|
|
CSS4 Color Module
|
|
5.2 System Colors
|
|
https://www.w3.org/TR/css-color-4/#css-system-colors
|
|
-->
|
|
|
|
<body>
|
|
|
|
<p>Test passes if each glyph of "Selected Text" is underlined and if color and background color of "Selected Text" are the OS-default highlight colors. The underline color must also be the same as the highlight color of "Selected Text".
|
|
|
|
<div id="test" class="highlight_reftest">Selected Text</div>
|