Files
firefox/testing/web-platform/tests/css/css-pseudo/reference/active-selection-018-ref.html
T
Delan Azabani e8de60306c Bug 1705856 [wpt PR 28558] - CSS highlight painting: improve WPT cases (2), a=testonly
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
2021-04-23 22:16:21 +00:00

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>