File tree Expand file tree Collapse file tree 4 files changed +30
-4
lines changed Expand file tree Collapse file tree 4 files changed +30
-4
lines changed Original file line number Diff line number Diff line change @@ -39,9 +39,9 @@ class CSSVisitorUtils {
3939 ? ( rulesetNode . paths . length > 0 ) : false ;
4040 }
4141
42- resolveVisibility ( node , originalRules ) {
42+ resolveVisibility ( node ) {
4343 if ( ! node . blocksVisibility ( ) ) {
44- if ( this . isEmpty ( node ) && ! this . containsSilentNonBlockedChild ( originalRules ) ) {
44+ if ( this . isEmpty ( node ) ) {
4545 return ;
4646 }
4747
Original file line number Diff line number Diff line change @@ -136,8 +136,6 @@ body > .shadow {
136136 symbols: ‣;
137137 suffix: " ";
138138}
139- @-ms-viewport {
140- }
141139@unknown foo 42 (bar) {
142140 x {
143141 y : z;
Original file line number Diff line number Diff line change 55// * #2716 - A file imported by reference and then normally - multiple imports should be independent
66// * #1968 - When using an @import (reference), mixins that contain an & selector get added to the compiled output improperly
77// * #2162 - Cannot put import by reference inside of a mixin (also doubles #1896)
8+ // * #2991 - Empty @media queries generated through line comments when compiling less file with (reference)
89
910// #1878: extend inside referenced file should not extend outside selectors
1011@import (reference ) " import-reference-issues/global-scope-import.less" ;
@@ -48,3 +49,5 @@ show-all-content {
4849call- mixin- with- import- by- reference- inside {
4950 .mixin-with-import-by-reference-inside ();
5051}
52+
53+ @import (reference ) " import-reference-issues/comments-2991.less" ;
Original file line number Diff line number Diff line change 1+ .referenced {
2+ // This file should not output anything if referenced.
3+ @media (hover ) {
4+ // This file should not output anything if referenced.
5+ }
6+ // This file should not output anything if referenced.
7+ @media (hover ) {
8+ // This file should not output anything if referenced.
9+ }
10+ // This file should not output anything if referenced.
11+ @media (hover ) {
12+ /* This file should not output anything if referenced. */
13+ }
14+ // This file should not output anything if referenced.
15+ @media (hover ) {
16+ color : #000000 ;
17+ }
18+ }
19+ // This file should not output anything if referenced.
20+ @media (hover ) {
21+ // This file should not output anything if referenced.
22+ }
23+ @media (hover ) {
24+ /* This file should not output anything if referenced. */
25+ }
You can’t perform that action at this time.
0 commit comments