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/slot-non-html-display-value.html - WPT Dashboard Interop Dashboard
<!doctype html>
<title>CSS Test: non-HTML slot elements don't get display: contents by default.</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<link rel="author" title="Emilio Cobos Álvarez" href="mailto:emilio@crisal.io">
<body>
<script>
test(function() {
document.body.appendChild(non_html_slot);
const display = getComputedStyle(non_html_slot).display;
assert_true(display != "contents" && display != "none");
}, "Non-HTML slot elements shouldn't be display: contents by default.");
</script>
</body>