Update web-platform-tests to revision b'ee6da9d71d0268d7fdb04e8e5b26858f46ee0cc4'

This commit is contained in:
WPT Sync Bot 2022-01-20 04:38:55 +00:00 committed by cybai
parent 4401622eb1
commit b77ad115f6
16832 changed files with 270819 additions and 87621 deletions

View file

@ -32,3 +32,38 @@ Simplify this pattern at your own peril! For example, if you set backgrounds
directly on layers as your highlight backgrounds, they will always be exactly
`line-height` tall, but even if your `line-height` is 1, the actual line boxes
and so on can still be taller (unless they contain Ahem text only).
## Selection regression tests
Four tests are based on the properties described in <https://crrev.com/915543>,
and were designed to catch regressions as bugs were fixed in Chromium:
* selection-originating-underline-order.html (P1)
* selection-originating-decoration-color.html (P3)
* selection-originating-strikethrough-order.html (P4)
* selection-background-painting-order.html (P5)
Ideally we would want a test for property P2, that line-through decorations are
always painted over text when selecting some of that text. But unfortunately,
originating decoration recoloring (when correctly implemented) essentially makes
it impossible to tell whether the text or the decoration was painted on top.
Some ways this test could become possible:
* Wider impl support for ::target-text or ::highlight decorations.
Decorations introduced by highlight pseudos arent recolored, so
we could move the originating text-decoration to any highlight
that paints under ::selection (currently all of them), choose
another ::selection color, and check which is painted on top.
* SVG adds support for text-decoration-color, or HTML adds support
for stroke and stroke-width via CSS, as long as we continue to
recolor originating decorations to color only. Then we could
stroke in another color, and check which is painted on top.
* css-pseudo adds some kind of support for suppressing or otherwise
tweaking the recoloring of originating decorations.
* Some other standard means for text to contain colors other than
the color property, such as color fonts.