Update web-platform-tests to revision 256b4685b8e702c14ed854347f23f4979edbfc8e

This commit is contained in:
WPT Sync Bot 2019-12-20 08:23:04 +00:00
parent bac9903fbe
commit 45c91aa0cb
134 changed files with 1297 additions and 426 deletions

View file

@ -0,0 +1,57 @@
<!DOCTYPE html>
<html class="reftest-wait">
<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>
iframe {
width: 600px;
border: none;
}
</style>
<body>
<script src="/common/reftest-wait.js"></script>
<script>
"use strict";
const code = `
<!DOCTYPE html>
<style>
::marker {
font-size: 3vw;
}
ol {
float: left;
}
.inside {
list-style-position: inside;
}
.decimal {
list-style-type: decimal;
}
.string {
list-style-type: "1. ";
}
.marker::marker {
content: "1. ";
}
</style>
<ol>
<li class="decimal">item</li>
<li class="string">item</li>
<li class="marker">item</li>
</ol>
<ol class="inside">
<li class="decimal">item</li>
<li class="string">item</li>
<li class="marker">item</li>
</ol>
`;
const iframe = document.createElement("iframe");
iframe.src = "data:text/html," + encodeURI(code);
iframe.addEventListener("load", function() {
takeScreenshot();
}, {once: true});
document.body.appendChild(iframe);
</script>
</body>
</html>

View file

@ -0,0 +1,67 @@
<!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-014-ref.html">
<link rel="help" href="https://drafts.csswg.org/css-pseudo-4/#marker-pseudo">
<link rel="help" href="https://drafts.csswg.org/css-values/#viewport-relative-lengths">
<meta name="assert" content="Checks that viewport units in ::marker are recalculated when viewport size changes.">
<style>
iframe {
width: 300px;
border: none;
}
iframe.big {
width: 600px;
}
</style>
<body>
<script src="/common/reftest-wait.js"></script>
<script>
"use strict";
const code = `
<!DOCTYPE html>
<style>
::marker {
font-size: 3vw;
}
ol {
float: left;
}
.inside {
list-style-position: inside;
}
.decimal {
list-style-type: decimal;
}
.string {
list-style-type: "1. ";
}
.marker::marker {
content: "1. ";
}
</style>
<ol>
<li class="decimal">item</li>
<li class="string">item</li>
<li class="marker">item</li>
</ol>
<ol class="inside">
<li class="decimal">item</li>
<li class="string">item</li>
<li class="marker">item</li>
</ol>
`;
const iframe = document.createElement("iframe");
iframe.src = "data:text/html," + encodeURI(code);
iframe.addEventListener("load", function() {
requestAnimationFrame(() => {
iframe.classList.add("big");
takeScreenshot();
});
}, {once: true});
document.body.appendChild(iframe);
</script>
</body>
</html>

View file

@ -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>
li {
margin-left: 100px;
}
.outside {
list-style-position: outside;
}
.inside {
list-style-position: inside;
}
.decimal {
list-style-type: decimal;
}
.string {
list-style-type: "[marker]";
}
</style>
<!-- Note: Chromium and WebKit force all these markers to be inside -->
<li class="outside decimal">outside</li>
<li class="outside string">outside</li>
<li class="inside decimal">inside</li>
<li class="inside string">inside</li>

View file

@ -0,0 +1,29 @@
<!DOCTYPE html>
<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-015-ref.html">
<link rel="help" href="https://drafts.csswg.org/css-pseudo-4/#marker-pseudo">
<meta name="assert" content="Checks that the position of a ::marker originated by a <li> which is not in a list is not affected by the 'content' property.">
<style>
li {
margin-left: 100px;
}
.outside {
list-style-position: outside;
}
.inside {
list-style-position: inside;
}
.decimal {
list-style-type: decimal;
}
.marker::marker {
content: "[marker]";
}
</style>
<!-- Note: Chromium and WebKit force all these markers to be inside -->
<li class="outside decimal">outside</li>
<li class="outside marker">outside</li>
<li class="inside decimal">inside</li>
<li class="inside marker">inside</li>