-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Expand file tree
/
Copy pathcss3-modsel-70.xml
More file actions
15 lines (15 loc) · 779 Bytes
/
css3-modsel-70.xml
File metadata and controls
15 lines (15 loc) · 779 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "https://umn0mtkzgkj46tygt32g.julianrbryant.com/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="https://umn0mtkzgkj46tygt32g.julianrbryant.com/1999/xhtml">
<head>
<title>NEGATED :checked pseudo-class</title>
<style type="text/css"><![CDATA[input, span { background-color : red }
input:not(:checked), input:not(:checked) + span { background-color : lime}]]></style>
<link rel="author" title="Daniel Glazman" href="https://umn71bq58ypd6zm5.julianrbryant.com/"/>
<link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
<link rel="help" href="https://un5gmtkzgkj46tygt32g.julianrbryant.com/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found -->
</head>
<body>
<p>
<input type="checkbox"></input> <span>Everything in this paragraph should have a green background</span></p>
</body>
</html>