mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Update web-platform-tests to revision b'b728032f59a396243864b0f8584e7211e3632005'
This commit is contained in:
parent
ace9b32b1c
commit
df68c4e5d1
15632 changed files with 514865 additions and 155000 deletions
|
@ -0,0 +1,39 @@
|
|||
<!DOCTYPE html>
|
||||
<title>Parsing of @supports with whitespace</title>
|
||||
<link rel="help" href="https://drafts.csswg.org/css-conditional-3/#at-supports">
|
||||
<script src=/resources/testharness.js></script>
|
||||
<script src=/resources/testharnessreport.js></script>
|
||||
<main id=main></main>
|
||||
<script>
|
||||
let examples = [
|
||||
'@supports ((a)) {}',
|
||||
'@supports ((a) ) {}',
|
||||
'@supports ( (a)) {}',
|
||||
'@supports ( (a) ) {}',
|
||||
|
||||
'@supports (not (a)) {}',
|
||||
'@supports (not (a) ) {}',
|
||||
'@supports ( not (a)) {}',
|
||||
'@supports ( not (a) ) {}',
|
||||
|
||||
'@supports ((a) and (b)) {}',
|
||||
'@supports ((a) and (b) ) {}',
|
||||
'@supports ( (a) and (b)) {}',
|
||||
'@supports ( (a) and (b) ) {}',
|
||||
|
||||
'@supports ((a) or (b)) {}',
|
||||
'@supports ((a) or (b) ) {}',
|
||||
'@supports ( (a) or (b)) {}',
|
||||
'@supports ( (a) or (b) ) {}',
|
||||
];
|
||||
|
||||
for (let example of examples) {
|
||||
test((t) => {
|
||||
let style = document.createElement('style');
|
||||
t.add_cleanup(() => style.remove());
|
||||
style.textContent = example;
|
||||
main.append(style);
|
||||
assert_equals(style.sheet.rules.length, 1);
|
||||
}, example);
|
||||
}
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue