| OLD | NEW |
| (Empty) |
| 1 Verifies CSS pretty-printing functionality. | |
| 2 | |
| 3 | |
| 4 Running: testSimpleCSS | |
| 5 ====== 8< ------ | |
| 6 a { | |
| 7 /* pre-comment */ | |
| 8 color /* after name */ : /* before value */ red /* post-comment */ | |
| 9 } | |
| 10 | |
| 11 ------ >8 ====== | |
| 12 | |
| 13 Running: testComplexCSS | |
| 14 ====== 8< ------ | |
| 15 @media screen { | |
| 16 html { | |
| 17 color: green; | |
| 18 foo-property: bar-value | |
| 19 } | |
| 20 } | |
| 21 } | |
| 22 | |
| 23 body { | |
| 24 background-color: black; | |
| 25 } | |
| 26 | |
| 27 ------ >8 ====== | |
| 28 Correct mapping for <@media> | |
| 29 Correct mapping for <screen> | |
| 30 Correct mapping for <html> | |
| 31 Correct mapping for <color> | |
| 32 Correct mapping for <green> | |
| 33 Correct mapping for <foo-property> | |
| 34 Correct mapping for <bar-value> | |
| 35 Correct mapping for <body> | |
| 36 Correct mapping for <background> | |
| 37 Correct mapping for <black> | |
| 38 | |
| 39 Running: testFormatInlinedStyles | |
| 40 ====== 8< ------ | |
| 41 <html> | |
| 42 <body> | |
| 43 <style> | |
| 44 @-webkit-keyframes { | |
| 45 from { | |
| 46 left: 0 | |
| 47 } | |
| 48 | |
| 49 to { | |
| 50 left: 100px; | |
| 51 } | |
| 52 } | |
| 53 </style> | |
| 54 <style> | |
| 55 badbraces { | |
| 56 } | |
| 57 } | |
| 58 | |
| 59 @media screen { | |
| 60 a { | |
| 61 color: red; | |
| 62 text-decoration: none | |
| 63 } | |
| 64 } | |
| 65 </style> | |
| 66 </body> | |
| 67 </html> | |
| 68 | |
| 69 ------ >8 ====== | |
| 70 | |
| 71 Running: testNonZeroLineMapping | |
| 72 ====== 8< ------ | |
| 73 div { | |
| 74 color: red; | |
| 75 } | |
| 76 | |
| 77 ------ >8 ====== | |
| 78 Correct mapping for <div> | |
| 79 Correct mapping for <color> | |
| 80 Correct mapping for <red> | |
| 81 | |
| OLD | NEW |