Skip to content

Commit

Permalink
Add specs for extending a selector list in selector.extend()
Browse files Browse the repository at this point in the history
  • Loading branch information
nex3 committed Jun 24, 2021
1 parent 1d24ef5 commit abb6179
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions spec/core_functions/selector/extend/list.hrx
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<===> one_matches/input.scss
a {b: selector-extend(".c", ".c, .d", ".e")}

<===> one_matches/output.css
a {
b: .c, .e;
}

<===>
================================================================================
<===> all_match/input.scss
a {b: selector-extend(".c.d", ".c, .d", ".e")}

<===> all_match/output.css
a {
b: .c.d, .e;
}

<===>
================================================================================
<===> different_matches/input.scss
a {b: selector-extend(".c.d, .c .e, .d .f", ".c, .d", ".g")}

<===> different_matches/output.css
a {
b: .c.d, .g, .c .e, .g .e, .d .f, .g .f;
}

0 comments on commit abb6179

Please sign in to comment.