mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Update web-platform-tests to revision b'4435c35d9085ed2be61e64d0093b8e1b0e7a877b'
This commit is contained in:
parent
901b76297d
commit
4031d79cea
383 changed files with 8858 additions and 2734 deletions
|
@ -4,6 +4,7 @@
|
|||
<link rel="help" href="https://drafts.csswg.org/css-contain-3/#query-container">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script src="/resources/declarative-shadow-dom-polyfill.js"></script>
|
||||
<script src="support/cq-testcommon.js"></script>
|
||||
<style>
|
||||
#inclusive-ancestor-across-root,
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
<link rel="help" href="https://drafts.csswg.org/css-scoping-1/#shadow-names">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script src="/resources/declarative-shadow-dom-polyfill.js"></script>
|
||||
<script src="support/cq-testcommon.js"></script>
|
||||
|
||||
<div id="container-name-host">
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
<link rel="help" href="https://drafts.csswg.org/css-contain-3/#query-container">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script src="/resources/declarative-shadow-dom-polyfill.js"></script>
|
||||
<script src="support/cq-testcommon.js"></script>
|
||||
<style>
|
||||
.container {
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
<link rel="help" href="https://drafts.csswg.org/css-contain-3/#container-queries">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script src="/resources/declarative-shadow-dom-polyfill.js"></script>
|
||||
<script src="support/cq-testcommon.js"></script>
|
||||
<style>
|
||||
#outer {
|
||||
|
|
|
@ -1,13 +1,3 @@
|
|||
function assert_implements_container_queries() {
|
||||
assert_implements(CSS.supports("container-type:size"), "Basic support for container queries required");
|
||||
}
|
||||
|
||||
function polyfill_declarative_shadow_dom(root) {
|
||||
root.querySelectorAll("template[shadowroot]").forEach(template => {
|
||||
const mode = template.getAttribute("shadowroot");
|
||||
const shadowRoot = template.parentNode.attachShadow({ mode });
|
||||
shadowRoot.appendChild(template.content);
|
||||
template.remove();
|
||||
polyfill_declarative_shadow_dom(shadowRoot);
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue