File tree Expand file tree Collapse file tree 2 files changed +32
-0
lines changed Expand file tree Collapse file tree 2 files changed +32
-0
lines changed Original file line number Diff line number Diff line change @@ -432,6 +432,14 @@ function testUnmatchedBracesInFile() {
432
432
$ this ->assertSame ($ sExpected , $ oDoc ->render ());
433
433
}
434
434
435
+ function testInvalidSelectorsInFile () {
436
+ $ oDoc = $ this ->parsedStructureForFile ('invalid-selectors ' , Settings::create ()->withMultibyteSupport (true ));
437
+ $ sExpected = '@keyframes mymove {from {top: 0px;}}
438
+ #test {color: white;background: green;}
439
+ #test {display: block;background: white;color: black;} ' ;
440
+ $ this ->assertSame ($ sExpected , $ oDoc ->render ());
441
+ }
442
+
435
443
/**
436
444
* @expectedException Sabberworm\CSS\Parsing\UnexpectedTokenException
437
445
*/
Original file line number Diff line number Diff line change
1
+ @keyframes mymove {
2
+ from { top : 0px ; }
3
+ }
4
+
5
+ # test {
6
+ color : white;
7
+ background : green;
8
+ }
9
+
10
+ body
11
+ background : black;
12
+ }
13
+
14
+ # test {
15
+ display : block;
16
+ background : red;
17
+ color : white;
18
+ }
19
+ # test {
20
+ display : block;
21
+ background : white;
22
+ color : black;
23
+ }
24
+
You can’t perform that action at this time.
0 commit comments