mirror of
https://github.com/servo/servo.git
synced 2025-08-11 08:25:32 +01:00
Update web-platform-tests to revision 074719e3660000659cd074b8a59de69bd9b90cd7
This commit is contained in:
parent
7e4d0534c3
commit
d2429e5077
4053 changed files with 160516 additions and 486 deletions
|
@ -0,0 +1,26 @@
|
|||
<!DOCTYPE html>
|
||||
<meta charset="utf-8">
|
||||
<title>CSS Reference: ::marker pseudo elements styled with 'content' property</title>
|
||||
<link rel="author" title="Oriol Brufau" href="mailto:obrufau@igalia.com">
|
||||
<style>
|
||||
::marker {
|
||||
content: "[m]";
|
||||
}
|
||||
.inside {
|
||||
list-style-position: inside;
|
||||
}
|
||||
</style>
|
||||
<ol class="inside">
|
||||
<li>inside none→symbol</li>
|
||||
<li>inside symbol→decimal</li>
|
||||
<li>inside decimal→roman</li>
|
||||
<li>inside roman→string</li>
|
||||
<li>inside string→none</li>
|
||||
</ol>
|
||||
<ol class="outside">
|
||||
<li>outside none→symbol</li>
|
||||
<li>outside symbol→decimal</li>
|
||||
<li>outside decimal→roman</li>
|
||||
<li>outside roman→string</li>
|
||||
<li>outside string→none</li>
|
||||
</ol>
|
|
@ -0,0 +1,66 @@
|
|||
<!DOCTYPE html>
|
||||
<html class="reftest-wait">
|
||||
<meta charset="utf-8">
|
||||
<title>CSS Test: ::marker pseudo elements styled with 'content' property</title>
|
||||
<link rel="author" title="Oriol Brufau" href="mailto:obrufau@igalia.com">
|
||||
<link rel="match" href="marker-content-021-ref.html">
|
||||
<link rel="help" href="https://drafts.csswg.org/css-pseudo-4/#marker-pseudo">
|
||||
<link rel="help" href="https://drafts.csswg.org/css-lists/#content-property">
|
||||
<meta name="assert" content="Checks that non-normal ::marker is not updated when 'list-style-type' changes dynamically.">
|
||||
<style>
|
||||
::marker {
|
||||
content: "[m]";
|
||||
}
|
||||
.inside {
|
||||
list-style-position: inside;
|
||||
}
|
||||
.none {
|
||||
list-style-type: none;
|
||||
}
|
||||
.symbol {
|
||||
list-style-type: disc;
|
||||
}
|
||||
.decimal {
|
||||
list-style-type: decimal;
|
||||
}
|
||||
.roman {
|
||||
list-style-type: lower-roman;
|
||||
}
|
||||
.string {
|
||||
list-style-type: "string";
|
||||
}
|
||||
</style>
|
||||
<ol class="inside">
|
||||
<li class="none">inside none→symbol</li>
|
||||
<li class="symbol">inside symbol→decimal</li>
|
||||
<li class="decimal">inside decimal→roman</li>
|
||||
<li class="roman">inside roman→string</li>
|
||||
<li class="string">inside string→none</li>
|
||||
</ol>
|
||||
<ol class="outside">
|
||||
<li class="none">outside none→symbol</li>
|
||||
<li class="symbol">outside symbol→decimal</li>
|
||||
<li class="decimal">outside decimal→roman</li>
|
||||
<li class="roman">outside roman→string</li>
|
||||
<li class="string">outside string→none</li>
|
||||
</ol>
|
||||
<script src="/common/reftest-wait.js"></script>
|
||||
<script>
|
||||
"use strict";
|
||||
// Use a "load" event listener and requestAnimationFrame to ensure that
|
||||
// the markers will have been laid out.
|
||||
addEventListener("load", function() {
|
||||
requestAnimationFrame(() => {
|
||||
for (let list of document.querySelectorAll("ol")) {
|
||||
// Rotate class names among list items
|
||||
const firstClass = list.firstElementChild.className;
|
||||
for (let item of list.children) {
|
||||
const next = item.nextElementSibling;
|
||||
item.className = next ? next.className : firstClass;
|
||||
}
|
||||
}
|
||||
takeScreenshot();
|
||||
});
|
||||
}, {once: true});
|
||||
</script>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue