Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-scoping/host-is-featureless.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<title>CSS Scoping: Shadow host is featureless</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<div id="host">
<template shadowrootmode="open">
<style>
div {
--x:FAIL;
}
</style>
</template>
</div>
<script>
test(() => {
assert_equals(getComputedStyle(host).getPropertyValue('--x'), '');
});
</script>