mirror of
https://github.com/servo/servo.git
synced 2025-08-09 23:45:35 +01:00
Update web-platform-tests to revision 632a3f59238036b6e24b28d47218ba9986ff4c62
This commit is contained in:
parent
cd02ca6c19
commit
fb838278a5
430 changed files with 15017 additions and 508 deletions
|
@ -0,0 +1,3 @@
|
|||
spec: https://drafts.csswg.org/css-device-adapt/
|
||||
suggested_reviewers:
|
||||
- ChumpChief
|
|
@ -0,0 +1,31 @@
|
|||
<!DOCTYPE html>
|
||||
<title>css-device-adapt IDL tests</title>
|
||||
<link rel="help" href="https://drafts.csswg.org/css-device-adapt/">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script src="/resources/WebIDLParser.js"></script>
|
||||
<script src="/resources/idlharness.js"></script>
|
||||
|
||||
<style>
|
||||
p { color: black; }
|
||||
</style>
|
||||
<style>
|
||||
@viewport { width: device-width; }
|
||||
</style>
|
||||
|
||||
<script>
|
||||
'use strict';
|
||||
|
||||
idl_test(
|
||||
['css-device-adapt'],
|
||||
['cssom'],
|
||||
idl_array => {
|
||||
idl_array.add_objects({
|
||||
CSSRule: ['cssRule'],
|
||||
CSSViewportRule: ['cssViewportRule'],
|
||||
});
|
||||
self.cssRule = document.styleSheets[0].cssRules[0];
|
||||
self.cssViewportRule = document.styleSheets[1].cssRules[0];
|
||||
}
|
||||
);
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue