OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <title>CSS Media Queries: tokenizing "and"</title> | 4 <title>CSS Media Queries: tokenizing "and"</title> |
5 <link rel="help" href="http://www.w3.org/TR/css3-mediaqueries/#syntax" /> | 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-20120619-
errata.html"> |
6 <style type="text/css"> | 7 <style type="text/css"> |
7 div { | 8 div { |
8 width: 150px; | 9 width: 150px; |
9 height: 50px; | 10 height: 50px; |
10 background-color: red; | 11 background-color: red; |
11 } | 12 } |
12 #t1 { background-color: green; } | 13 #t1, #t2, #t6 { background-color: green; } |
13 @media all and(color) { #t1 { background-color: red; } } | 14 @media all and(color) { #t1 { background-color: red; } } |
14 @media all and/**/(color) { #t2 { background-color: green; } } | 15 @media all and/**/(color) { #t2 { background-color: red; } } |
15 @media all and (color) { #t3 { background-color: green; } } | 16 @media all and (color) { #t3 { background-color: green; } } |
| 17 @media all and/**/ (color) { #t4 { background-color: green; } } |
| 18 @media all and /**/(color) { #t5 { background-color: green; } } |
| 19 @media all/**/and (color) { #t6 { background-color: red; } } |
| 20 @media all /**/and (color) { #t7 { background-color: green; } } |
| 21 @media all/**/ and (color) { #t8 { background-color: green; } } |
16 </style> | 22 </style> |
17 </head> | 23 </head> |
18 <body> | 24 <body> |
19 <p>You should see a green square below.</p> | 25 <p>You should see a green rectangle below.</p> |
20 <div id="t1"></div> | 26 <div id="t1"></div> |
21 <div id="t2"></div> | 27 <div id="t2"></div> |
22 <div id="t3"></div> | 28 <div id="t3"></div> |
| 29 <div id="t4"></div> |
| 30 <div id="t5"></div> |
| 31 <div id="t6"></div> |
| 32 <div id="t7"></div> |
| 33 <div id="t8"></div> |
23 </body> | 34 </body> |
24 </html> | 35 </html> |
OLD | NEW |