| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright 2015 The Chromium Authors. All rights reserved. | 2 # Copyright 2015 The Chromium Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 | 5 |
| 6 import css_checker | 6 import css_checker |
| 7 from os import path as os_path | 7 from os import path as os_path |
| 8 import re | 8 import re |
| 9 from sys import path as sys_path | 9 from sys import path as sys_path |
| 10 import unittest | 10 import unittest |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 /* Hello! */div/* Comment here*/{ | 141 /* Hello! */div/* Comment here*/{ |
| 142 display: block; | 142 display: block; |
| 143 } | 143 } |
| 144 | 144 |
| 145 blah /* hey! */ | 145 blah /* hey! */ |
| 146 { | 146 { |
| 147 rule: value; | 147 rule: value; |
| 148 } | 148 } |
| 149 | 149 |
| 150 .mixed-in { | 150 .mixed-in { |
| 151 display: none; |
| 151 --css-mixin: { | 152 --css-mixin: { |
| 152 color: red; | 153 color: red; |
| 153 }; /* This should be ignored. */ | 154 }; /* This should be ignored. */ |
| 154 } | 155 } |
| 155 | 156 |
| 156 .this.is { /* allowed */ | 157 .this.is { /* allowed */ |
| 157 rule: value; | 158 rule: value; |
| 158 }""", """ | 159 }""", """ |
| 159 - Start braces ({) end a selector, have a space before them and no rules after. | 160 - Start braces ({) end a selector, have a space before them and no rules after. |
| 160 div{ | 161 div{ |
| (...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 426 opacity: 0.0; | 427 opacity: 0.0; |
| 427 opacity: 0.; | 428 opacity: 0.; |
| 428 border-width: 0mm; | 429 border-width: 0mm; |
| 429 height: 0cm; | 430 height: 0cm; |
| 430 width: 0in; | 431 width: 0in; |
| 431 """) | 432 """) |
| 432 | 433 |
| 433 | 434 |
| 434 if __name__ == '__main__': | 435 if __name__ == '__main__': |
| 435 unittest.main() | 436 unittest.main() |
| OLD | NEW |