-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Expand file tree
/
Copy pathfeatureless-003.html
More file actions
39 lines (37 loc) · 1.1 KB
/
featureless-003.html
File metadata and controls
39 lines (37 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<!doctype html>
<meta charset="utf-8">
<title>Selector lists match if any child selector does</title>
<link rel="help" href="https://drafts.csswg.org/selectors-4/#featureless">
<link rel="match" href="/css/reference/ref-filled-green-100px-square-only.html">
<p>Test passes if there is a filled green square.</p>
<div class=host>
<template shadowrootmode="open">
<style>
div {
width: 100px;
height: 25px;
}
.red { background-color: red; }
.green { background-color: green; }
:host .t1, .error {
background-color: green;
}
div:host .t2,
:host .t2 {
background-color: green;
}
div:host .t3,
*:host .t3 {
background-color: red;
}
/* no t4 test needed, just leaving the element in
to prevent careful rounding from being necessary. */
</style>
<div class="red t1"></div>
<div class="red t2"></div>
<div class="green t3"></div>
<div class="green t4"></div>
<slot></slot>
</template>
<section></section>
</div>