| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <style type="text/css"> | 4 <style type="text/css"> |
| 5 /* Valid viewport syntax. */ | 5 /* Valid viewport syntax. */ |
| 6 @viewport { | 6 @viewport { |
| 7 } | 7 } |
| 8 | 8 |
| 9 /* Valid viewport syntax, extras spaces should be ignored. */ | 9 /* Valid viewport syntax, extras spaces should be ignored. */ |
| 10 @viewport { | 10 @viewport { |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 | 63 |
| 64 test(function() { | 64 test(function() { |
| 65 assert_equals(rules.item(2).cssText, "@viewport { max-height: 200px;
min-height: 200px; }"); | 65 assert_equals(rules.item(2).cssText, "@viewport { max-height: 200px;
min-height: 200px; }"); |
| 66 }, "Rule with attributes"); | 66 }, "Rule with attributes"); |
| 67 | 67 |
| 68 test(function() { | 68 test(function() { |
| 69 assert_equals(rules.item(3).cssText, "@viewport { }"); | 69 assert_equals(rules.item(3).cssText, "@viewport { }"); |
| 70 }, "Rule with malformed attributes"); | 70 }, "Rule with malformed attributes"); |
| 71 | 71 |
| 72 test(function() { | 72 test(function() { |
| 73 assert_equals(rules.item(4).cssText, "@media all { \n @viewport { }
\n}"); | 73 assert_equals(rules.item(4).cssText, "@media all {\n @viewport { }\
n}"); |
| 74 }, "Should be accepted inside media queries"); | 74 }, "Should be accepted inside media queries"); |
| 75 | 75 |
| 76 test(function() { | 76 test(function() { |
| 77 assert_equals(rules.item(5).cssText, "@viewport { max-height: 100px;
min-height: 100px; }"); | 77 assert_equals(rules.item(5).cssText, "@viewport { max-height: 100px;
min-height: 100px; }"); |
| 78 }, "Nested viewport rule"); | 78 }, "Nested viewport rule"); |
| 79 | 79 |
| 80 test(function() { | 80 test(function() { |
| 81 assert_equals(rules.item(6).cssText, "@viewport { max-height: 50px;
min-height: 50px; }"); | 81 assert_equals(rules.item(6).cssText, "@viewport { max-height: 50px;
min-height: 50px; }"); |
| 82 }, "Rules inside a viewport rule"); | 82 }, "Rules inside a viewport rule"); |
| 83 </script> | 83 </script> |
| 84 </head> | 84 </head> |
| 85 <body> | 85 <body> |
| 86 <div id="log"></div> | 86 <div id="log"></div> |
| 87 </body> | 87 </body> |
| 88 </html> | 88 </html> |
| OLD | NEW |