Update web-platform-tests to revision 06fef020fd350a4091c8a19dc83e50d8456f3dc1

This commit is contained in:
WPT Sync Bot 2020-02-28 08:20:26 +00:00
parent 756cf66cd2
commit c7993204e4
121 changed files with 1089 additions and 673 deletions

View file

@ -0,0 +1,20 @@
<!doctype html>
<title>Cascade order of a stylesheet for duplicate sheets.</title>
<link rel="author" title="Emilio Cobos Álvarez" href="mailto:emilio@crisal.io">
<link rel="help" href="https://wicg.github.io/construct-stylesheets/">
<script src = '/resources/testharness.js'></script>
<script src = '/resources/testharnessreport.js'></script>
<div></div>
<script>
test(function() {
let sheets = [];
for (let i = 0; i < 2; ++i) {
sheets.push(new CSSStyleSheet());
sheets[i].replaceSync("div { z-index: " + i + " }");
}
document.adoptedStyleSheets = [sheets[1], sheets[0], sheets[1]];
assert_equals(getComputedStyle(document.querySelector("div")).zIndex, "1", "duplicate stylesheet should take right position in the cascade");
});
</script>