mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Update web-platform-tests to revision b'c9946198c9ee19db3b4974a388fae45da844a94a'
This commit is contained in:
parent
8dfd613aa1
commit
06e9d5a631
366 changed files with 8783 additions and 2336 deletions
|
@ -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>
|
|
@ -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>
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue