mirror of
https://github.com/servo/servo.git
synced 2025-08-11 00:15:32 +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,29 @@
|
|||
<!doctype html>
|
||||
<title>CSS Container Queries: CSSContainer Rule IDL tests</title>
|
||||
<link rel="help" href="https://drafts.csswg.org/css-contain-3/">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script src="/resources/WebIDLParser.js"></script>
|
||||
<script src="/resources/idlharness.js"></script>
|
||||
<!-- used to provide objects -->
|
||||
<style>
|
||||
@container cont (width = 100px) {
|
||||
@container (inline-size > 200em) {
|
||||
#id { color: lime }
|
||||
}
|
||||
#id { color: green }
|
||||
}
|
||||
</style>
|
||||
<script>
|
||||
idl_test(
|
||||
['css-contain-3'],
|
||||
['css-conditional', 'cssom', 'dom'],
|
||||
idl_array => {
|
||||
idl_array.add_objects({
|
||||
CSSContainerRule: ['sheet.cssRules[0]',
|
||||
'sheet.cssRules[0].cssRules[0]'],
|
||||
});
|
||||
self.sheet = document.styleSheets[0];
|
||||
}
|
||||
);
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue