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

This commit is contained in:
WPT Sync Bot 2022-11-10 01:22:36 +00:00
parent ace9b32b1c
commit df68c4e5d1
15632 changed files with 514865 additions and 155000 deletions

View file

@ -0,0 +1,22 @@
<!DOCTYPE html>
<html>
<head>
<title>HTML LI element: counter order with Shadow DOM and SLOT</title>
<link rel="author" title="Martin Robinson" href="mailto:mrobinson@igalia.com">
<link rel="help" href="https://www.w3.org/TR/css-lists-3/#inheriting-counters">
<style>
li::before { content: counters(list-item,'.') ' '; }
</style>
</head>
<body>
<ol>
<li>One</li>
<li>Two</li>
<ol>
<li>Two Point One</li>
</ol>
</ol>
</body>
</html>

View file

@ -0,0 +1,35 @@
<!DOCTYPE html>
<html>
<head>
<title>HTML LI element: counter order with Shadow DOM and SLOT</title>
<link rel="author" title="Martin Robinson" href="mailto:mrobinson@igalia.com">
<link rel="help" href="https://www.w3.org/TR/css-lists-3/#inheriting-counters">
<link rel="match" href="counter-list-item-slot-order-ref.html">
<style>
li::before { content: counters(list-item,'.') ' '; }
</style>
</head>
<body>
<div id="host">
<li slot="list3">Two Point One</li>
<li slot="list2">Two</li>
<li slot="list1">One</li>
</div>
<script>
const shadowRoot = document
.getElementById('host')
.attachShadow({mode: 'open'});
shadowRoot.innerHTML = `
<ol>
<slot name="list1"></slot>
<slot name="list2"></slot>
<ol>
<slot name="list3"></slot>
</ol>
</ol>
`;
</script>
</body>
</html>

View file

@ -0,0 +1,27 @@
<!DOCTYPE html>
<html>
<head>
<title>CSS counter order with Shadow DOM and SLOT</title>
<link rel="author" title="Martin Robinson" href="mailto:mrobinson@igalia.com">
<link rel="help" href="https://www.w3.org/TR/css-lists-3/#inheriting-counters">
<style>
.counted {
counter-increment: section;
}
.counted::before {
content: "C=" counter(section) " ";
}
</style>
</head>
<body>
<div>
<div class="counted">One</div>
<div class="counted">Two</div>
<div class="counted">Three</div>
</div>
</body>
</html>

View file

@ -0,0 +1,30 @@
<!DOCTYPE html>
<html>
<head>
<title>CSS counter order with "display: contents"</title>
<link rel="author" title="Martin Robinson" href="mailto:mrobinson@igalia.com">
<link rel="help" href="https://www.w3.org/TR/css-lists-3/#inheriting-counters">
<link rel="match" href="counter-order-display-contents-ref.html">
</head>
<body>
<style>
.counted {
counter-increment: section;
}
.counted::before {
content: "C=" counter(section) " ";
}
</style>
<div style="display: contents;">
<div class="counted">One</div>
</div>
<div style="display: contents;">
<div class="counted">Two</div>
</div>
<div style="display: contents;">
<div class="counted">Three</div>
</div>
</body>
</html>

View file

@ -0,0 +1,27 @@
<!DOCTYPE html>
<html>
<head>
<title>CSS counter order with Shadow DOM and SLOT</title>
<link rel="author" title="Martin Robinson" href="mailto:mrobinson@igalia.com">
<link rel="help" href="https://www.w3.org/TR/css-lists-3/#inheriting-counters">
<style>
.counted {
counter-increment: section;
}
.counted::before {
content: "C=" counter(section) " ";
}
</style>
</head>
<body>
<div>
<div class="counted">One</div>
<div class="counted">Two</div>
<div class="counted">Three</div>
</div>
</body>
</html>

View file

@ -0,0 +1,39 @@
<!DOCTYPE html>
<html>
<head>
<title>CSS counter order and scope with Shadow DOM and SLOT</title>
<link rel="author" title="Martin Robinson" href="mailto:mrobinson@igalia.com">
<link rel="help" href="https://www.w3.org/TR/css-lists-3/#inheriting-counters">
<style>
.counted {
counter-increment: section;
}
.reset {
counter-reset: section;
}
.counted::before {
content: "C=" counter(section) " ";
}
</style>
</head>
<body>
<div>
<div class="counted">One</div>
<div class="counted">Two</div>
<div class="counted">Three</div>
<div class="reset">Reset1</div>
<div class="counted">Four</div>
<div class="counted">Five</div>
<div class="counted">Six</div>
<div class="reset">Reset2</div>
<div class="counted">Seven</div>
<div class="counted">Eight</div>
<div class="counted">Nine</div>
</div>
</body>
</html>

View file

@ -0,0 +1,66 @@
<!DOCTYPE html>
<html>
<head>
<title>CSS counter order and scope with Shadow DOM and SLOT</title>
<link rel="author" title="Martin Robinson" href="mailto:mrobinson@igalia.com">
<link rel="help" href="https://www.w3.org/TR/css-lists-3/#inheriting-counters">
<link rel="match" href="counter-slot-order-scoping-ref.html">
</head>
<body>
<div id="host">
<div class="counted" slot="content3">Three</div>
<div class="counted" slot="content1">One</div>
<div class="counted" slot="content6">Six</div>
<div class="counted" slot="content4">Four</div>
<div style="counter-reset: section;" slot="reset">Reset2</div>
<div class="counted" slot="content9">Nine</div>
<div class="counted" slot="content7">Seven</div>
</div>
<script>
function makeStyle() {
let style = document.createElement('style');
style.textContent = `
.counted {
counter-increment: section;
}
.counted::before {
content: "C=" counter(section) " ";
}
`;
return style;
}
document.body.appendChild(makeStyle());
const shadowRoot = document
.getElementById('host')
.attachShadow({mode: 'open'});
shadowRoot.innerHTML = `
<div>
<slot name="content1"></slot>
<div class="counted" slot="content2">Two</div>
<slot name="content3"></slot>
<div style="counter-reset: section;">Reset1</div>
<slot name="content4"></slot>
<div class="counted" slot="content5">Five</div>
<slot name="content6"></slot>
<slot name="reset"></slot>
<slot name="content7"></slot>
<div class="counted" slot="content8">Eight</div>
<slot name="content9"></slot>
</div>
`;
shadowRoot.appendChild(makeStyle());
</script>
</body>
</html>

View file

@ -0,0 +1,40 @@
<!DOCTYPE html>
<html>
<head>
<title>CSS counter order and scope with Shadow DOM and SLOT</title>
<link rel="author" title="Martin Robinson" href="mailto:mrobinson@igalia.com">
<link rel="help" href="https://www.w3.org/TR/css-lists-3/#inheriting-counters">
<link rel="match" href="counter-slot-order-ref.html">
<style>
.counted {
counter-increment: section;
}
.counted::before {
content: "C=" counter(section) " ";
}
</style>
</head>
<body>
<div id="host">
<div class="counted" slot="content3">Three</div>
<div class="counted" slot="content2">Two</div>
<div class="counted" slot="content1">One</div>
</div>
<script>
const shadowRoot = document
.getElementById('host')
.attachShadow({mode: 'open'});
shadowRoot.innerHTML = `
<div>
<slot name="content1"></slot>
<slot name="content2"></slot>
<slot name="content3"></slot>
</div>
`;
</script>
</body>
</html>

View file

@ -0,0 +1,16 @@
<!doctype html>
<title>Crash removing element before counter inside multicol details element</title>
<link rel="help" href="https://crbug.com/1310295">
<style>
#counter { counter-reset:counter; }
#counter::after { content: counter(foo); }
</style>
<details style="columns:2;" open>
<span></span>
<div id="removeme"></div>
<span id="counter"></span>
</details>
<script>
document.body.offsetTop;
removeme.parentNode.removeChild(removeme);
</script>

View file

@ -0,0 +1,18 @@
<!doctype html>
<title>HTML root list-item crash during direction-propagation from body</title>
<link rel="help" href="https://crbug.com/1294531">
<style>
html {
display: list-item;
direction: rtl;
}
body {
direction: ltr;
}
div {
display:table-column-group;
column-count: 1;
}
</style>
<p>Pass if no crash.</p>
<div></div>

View file

@ -0,0 +1,21 @@
<!doctype html>
<title>BODY list-item crash inserting extra BODY</title>
<link rel="help" href="https://crbug.com/1298917">
<style>
body {
display: list-item;
}
div {
/* Multicol and table display to trigger legacy layout */
display: table-row-group;
column-count: 1;
}
</style>
<body>
<p>Pass if no crash.</p>
<div></div>
</body>
<script>
document.documentElement.offsetTop;
document.documentElement.insertBefore(document.createElement("body"), document.body);
</script>

View file

@ -0,0 +1,21 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<style>
*::marker {
content: '\643\D'
}
</style>
<script>
addEventListener("DOMContentLoaded", () => {
getSelection().collapse(document.body.lastChild, document.body.lastChild.length);
}, {once: true});
</script>
</head>
<body>
<ol>
<li contenteditable></li>
</ol>
</body>
</html>

View file

@ -18,6 +18,12 @@ test_invalid_value('counter-increment', '3');
test_invalid_value('counter-increment', '99 imagenum');
test_invalid_value('counter-increment', 'section -1, imagenum 99');
test_invalid_value('counter-increment', 'section 3.14');
test_invalid_value('counter-increment', 'inherit 1');
test_invalid_value('counter-increment', 'initial 1');
test_invalid_value('counter-increment', 'unset 1');
test_invalid_value('counter-increment', 'default 1');
test_invalid_value('counter-increment', 'revert 1');
test_invalid_value('counter-increment', 'revert-layer 1');
</script>
</body>
</html>

View file

@ -20,6 +20,12 @@ test_invalid_value('counter-reset', '99 imagenum');
test_invalid_value('counter-reset', '99 reversed(imagenum)');
test_invalid_value('counter-reset', 'section -1, imagenum 99');
test_invalid_value('counter-reset', 'section 3.14');
test_invalid_value('counter-reset', 'inherit 0');
test_invalid_value('counter-reset', 'initial 0');
test_invalid_value('counter-reset', 'unset 0');
test_invalid_value('counter-reset', 'default 0');
test_invalid_value('counter-reset', 'revert 0');
test_invalid_value('counter-reset', 'revert-layer 0');
</script>
</body>
</html>

View file

@ -18,6 +18,12 @@ test_invalid_value('counter-set', '3');
test_invalid_value('counter-set', '99 imagenum');
test_invalid_value('counter-set', 'section -1, imagenum 99');
test_invalid_value('counter-set', 'section 3.14');
test_invalid_value('counter-set', 'inherit 2');
test_invalid_value('counter-set', 'initial 2');
test_invalid_value('counter-set', 'unset 2');
test_invalid_value('counter-set', 'default 2');
test_invalid_value('counter-set', 'revert 2');
test_invalid_value('counter-set', 'revert-layer 2');
</script>
</body>
</html>