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

This commit is contained in:
WPT Sync Bot 2023-05-14 01:35:09 +00:00
parent 8dfd613aa1
commit 06e9d5a631
366 changed files with 8783 additions and 2336 deletions

View file

@ -0,0 +1,12 @@
<!DOCTYPE html>
<html>
<meta charset="utf-8">
<title>CSS Highlight API Test: ::highlight with text-underline-offset, reference</title>
<style>
#target {
text-decoration: wavy underline green 5px;
text-underline-offset: 20px;
}
</style>
<p id="target">The underline should be offset.</p>
</html>

View file

@ -0,0 +1,21 @@
<!DOCTYPE html>
<html>
<meta charset="utf-8">
<title>CSS Highlight API Test: ::highlight with text-underline-offset</title>
<link rel="help" href="https://drafts.csswg.org/css-highlight-api-1/">
<link rel="match" href="css-highlight-painting-underline-offset-001-ref.html">
<meta name="assert" content="Verify that text-underline-offset works in a ::highlight pseudo-element.">
<style>
::highlight(example) {
text-decoration: wavy underline green 5px;
text-underline-offset: 20px;
}
</style>
<p id="target">The underline should be offset.</p>
<script>
let range = new Range();
range.setStart(target, 0);
range.setEnd(target, 1);
CSS.highlights.set(`example`, new Highlight(range));
</script>
</html>

View file

@ -4,6 +4,7 @@
<link rel="help" href="https://drafts.csswg.org/css-highlight-api-1/">
<link rel="match" href="custom-highlight-painting-004-2-ref.html">
<meta name="assert" value="When painting overlapping highlights with the same .priority, the one added last should be painted on top; and style properties not defined by the one on top (background-color in this case) should follow the rules of the next Highlight from top to bottom until there's one that overwrites default (or use default value otherwise).">
<meta name="fuzzy" content="0-88;0-1">
<style>
::highlight(foo) {
color:blue;

View file

@ -4,6 +4,7 @@
<link rel="help" href="https://drafts.csswg.org/css-highlight-api-1/">
<link rel="match" href="custom-highlight-painting-004-ref.html">
<meta name="assert" value="When painting overlapping highlights with the same .priority, the one added last should be painted on top; and style properties not defined by the one on top (color in this case) should follow the rules of the next Highlight from top to bottom until there's one that overwrites default (or use default value otherwise).">
<meta name="fuzzy" content="0-255;0-110">
<style>
::highlight(foo) {
color:blue;

View file

@ -4,6 +4,7 @@
<link rel="help" href="https://drafts.csswg.org/css-highlight-api-1/">
<link rel="match" href="custom-highlight-painting-text-decoration-001-ref.html">
<meta name="assert" content="This test checks that ::highlight pseudo-element paints text-decorations defined by it.">
<meta name="fuzzy" content="0-255;0-27">
<style>
div {
float: left;