fix: allow duplicate selectors in scope, coz its safe to have them, coz hashing isnt affected by selector position
This commit is contained in:
parent
886c7a3541
commit
4fb4efd933
2 changed files with 68 additions and 11 deletions
17
tests/assets/repeating-selector.sass
Normal file
17
tests/assets/repeating-selector.sass
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
.el1
|
||||
color: red
|
||||
&-mob
|
||||
color: blue
|
||||
|
||||
&__blist
|
||||
list-style: none
|
||||
|
||||
.el2
|
||||
color: white
|
||||
&-mob
|
||||
color: black
|
||||
|
||||
&__blist
|
||||
background: white
|
||||
&-mob
|
||||
background: black
|
||||
24
tests/assets/repeating-selector.scss
Normal file
24
tests/assets/repeating-selector.scss
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
.el1 {
|
||||
color: red;
|
||||
&-mob {
|
||||
color: blue;
|
||||
}
|
||||
|
||||
&__blist {
|
||||
list-style: none;
|
||||
}
|
||||
}
|
||||
|
||||
.el2 {
|
||||
color: white;
|
||||
&-mob {
|
||||
color: black;
|
||||
}
|
||||
|
||||
&__blist {
|
||||
background: white;
|
||||
&-mob {
|
||||
background: black;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue