File tree 2 files changed +14
-11
lines changed
test-data/less/_main/import-reference-issues
2 files changed +14
-11
lines changed Original file line number Diff line number Diff line change @@ -39,9 +39,9 @@ class CSSVisitorUtils {
39
39
? ( rulesetNode . paths . length > 0 ) : false ;
40
40
}
41
41
42
- resolveVisibility ( node , originalRules ) {
42
+ resolveVisibility ( node ) {
43
43
if ( ! node . blocksVisibility ( ) ) {
44
- if ( this . isEmpty ( node ) && ! this . containsSilentNonBlockedChild ( originalRules ) ) {
44
+ if ( this . isEmpty ( node ) ) {
45
45
return ;
46
46
}
47
47
Original file line number Diff line number Diff line change 1
1
.referenced {
2
- // line comment is enough to reproduce it
2
+ // This file should not output anything if referenced.
3
3
@media (hover ) {
4
- // sezam
4
+ // This file should not output anything if referenced.
5
5
}
6
- // repeat to prove point
6
+ // This file should not output anything if referenced.
7
7
@media (hover ) {
8
- // sezam
8
+ // This file should not output anything if referenced.
9
9
}
10
- // but block comment is not, huh
10
+ // This file should not output anything if referenced.
11
11
@media (hover ) {
12
- /* salabim */
12
+ /* This file should not output anything if referenced. */
13
13
}
14
- // following block does not output, needs line comment
14
+ // This file should not output anything if referenced.
15
15
@media (hover ) {
16
16
color : #000000 ;
17
17
}
18
18
}
19
- // needs to be nested to fail
19
+ // This file should not output anything if referenced.
20
20
@media (hover ) {
21
- // sezam
21
+ // This file should not output anything if referenced.
22
+ }
23
+ @media (hover ) {
24
+ /* This file should not output anything if referenced. */
22
25
}
You can’t perform that action at this time.
0 commit comments