mirror of
https://github.com/servo/servo.git
synced 2025-10-16 08:20:22 +01:00
25 lines
795 B
HTML
25 lines
795 B
HTML
<!doctype html>
|
|
<title>Constructable Stylesheet Objects IDL tests</title>
|
|
<link rel="help" href="https://wicg.github.io/construct-stylesheets/">
|
|
<script src="/resources/testharness.js"></script>
|
|
<script src="/resources/testharnessreport.js"></script>
|
|
<script src="/resources/WebIDLParser.js"></script>
|
|
<script src="/resources/idlharness.js"></script>
|
|
<div id="shadowHost"></div>
|
|
<script>
|
|
'use strict';
|
|
|
|
idl_test(
|
|
['construct-stylesheets'],
|
|
['cssom', 'dom'],
|
|
idl_array => {
|
|
idl_array.add_objects({
|
|
CSSStyleSheet: ['new CSSStyleSheet()'],
|
|
Document: ['document'],
|
|
ShadowRoot: ['shadowRoot'],
|
|
});
|
|
const shadowHost = document.getElementById('shadowHost');
|
|
self.shadowRoot = shadowHost.attachShadow({mode: 'open'});
|
|
}
|
|
);
|
|
</script>
|