blob: a6b87bb0bb92cf12fc88d8677a065b24f90d4e48 [file] [log] [blame] [edit]
<!doctype html>
<link rel="match" href="pseudo-class-defined-print-ref.html">
<style>
:root {
print-color-adjust: exact;
}
custom-element {
display: block;
width: 100px;
height: 100px;
background: green;
}
custom-element:not(:defined) {
background: red;
}
</style>
<custom-element></custom-element>
<script>
customElements.define("custom-element", class extends HTMLElement { });
</script>