OLD | NEW |
| (Empty) |
1 <!DOCTYPE html> | |
2 <html> | |
3 <head> | |
4 <title>CSS Media Queries: parsing with "only" and "not"</title> | |
5 <link rel="help" href="http://www.w3.org/TR/css3-mediaqueries/#syntax" /> | |
6 <link rel="help" href="http://www.w3.org/Style/2012/REC-mediaqueries-2012061
9-errata.html"> | |
7 <style type="text/css"> | |
8 div { | |
9 width: 100px; | |
10 height: 10px; | |
11 background-color: red; | |
12 } | |
13 #t1, #t4 { background-color: green; } | |
14 @media not/**/speech { #t1 { background-color: red; } } | |
15 @media not/**/ speech { #t2 { background-color: green; } } | |
16 @media not /**/speech { #t3 { background-color: green; } } | |
17 @media only/**/screen { #t4 { background-color: red; } } | |
18 @media only/**/ screen { #t5 { background-color: green; } } | |
19 @media only /**/screen { #t6 { background-color: green; } } | |
20 </style> | |
21 </head> | |
22 <body> | |
23 <p>You should see a green rectangle below.</p> | |
24 <div id="t1"></div> | |
25 <div id="t2"></div> | |
26 <div id="t3"></div> | |
27 <div id="t4"></div> | |
28 <div id="t5"></div> | |
29 <div id="t6"></div> | |
30 </body> | |
31 </html> | |
OLD | NEW |