mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Update web-platform-tests to revision de9a09ab7f605aed6a4b53ed96427412bab76463
This commit is contained in:
parent
f3f9303fc9
commit
73a776843f
225 changed files with 5750 additions and 2858 deletions
|
@ -0,0 +1,28 @@
|
|||
<!doctype html>
|
||||
<title>CSS Variables Test: Exponential blowup doesn't crash</title>
|
||||
<meta charset="UTF-8">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<link rel="author" href="mailto:emilio@crisal.io" title="Emilio Cobos Álvarez">
|
||||
<link rel="author" href="https://mozilla.org" title="Mozilla">
|
||||
<link rel="help" href="https://drafts.csswg.org/css-variables/">
|
||||
<script>
|
||||
let css = `
|
||||
--v0: "Something really really really long";
|
||||
`;
|
||||
for (let i = 0; i < 30; ++i)
|
||||
css += `--v${i + 1}: var(--v${i}), var(--v${i});`;
|
||||
let s = document.createElement("style");
|
||||
s.innerHTML = `
|
||||
:root { ${css}; }
|
||||
:root::before { content: var(--v31); }
|
||||
`;
|
||||
document.head.appendChild(s);
|
||||
</script>
|
||||
PASS if doesn't crash
|
||||
<script>
|
||||
test(function() {
|
||||
getComputedStyle(document.documentElement, "::before").content;
|
||||
assert_true(true, "Didn't crash");
|
||||
});
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue