blob: 10ed3f7e92afec9acf924267cec137ebddd4ae99 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
<!doctype html>
<html lang="en">
<head>
<title>:not() test</title>
<style>
div {
background: yellow;
}
div:not(div div) {
background: lime;
}
</style>
</head>
<body>
<div>I am not a descendant and should be green.</div>
<div>
<div>I am a descendant and should be yellow.</div>
</div>
</body>
</html>
|