blob: 24e1bb7b03fa43ce2fa264711a247d5977e763f6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
<!doctype html>
<link rel="match" href="pseudo-class-defined-print-ref.html">
<style>
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>
|