mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Update web-platform-tests to revision b'c9f81de4242294a0d694ecd5a63155acfe6bf49a'
This commit is contained in:
parent
8c1703219d
commit
632afc64ae
403 changed files with 7449 additions and 5597 deletions
|
@ -0,0 +1,21 @@
|
|||
<!DOCTYPE html>
|
||||
<title>
|
||||
Delayed Stylesheet imported using link tag should not block rendering
|
||||
or JS execution when media doesn't match.
|
||||
</title>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script src="support/utils.js"></script>
|
||||
<link rel="stylesheet" href="support/link-style.css?pipe=trickle(d1)"
|
||||
media="print" onload="this.media='all'">
|
||||
<h1>
|
||||
This text is black in color till stylesheet is fetched.
|
||||
</h1>
|
||||
<script>
|
||||
test(() => {
|
||||
assert_false(styleExists("h1 { color: purple; }"),
|
||||
'Stylesheet should still be pending due to delay');
|
||||
const h1 = document.querySelector('h1');
|
||||
assert_equals(getComputedStyle(h1).color, 'rgb(0, 0, 0)');
|
||||
});
|
||||
</script>
|
|
@ -0,0 +1,3 @@
|
|||
h1 {
|
||||
color: purple;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue