Skip to content

Commit

Permalink
Update specs for Dart-3-style Dart Sass (#1925)
Browse files Browse the repository at this point in the history
This really _shouldn't_ affect any CSS output, but these changes are
semantically irrelevant and arguably better-looking than the old
versions.
  • Loading branch information
nex3 authored Aug 2, 2023
1 parent 36be13c commit 08eb143
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
a {b: selector-unify(".c > .d + .e", ".f .g ~ .h")}

<===> isolated/output.css
a {
b: .f .c > .g ~ .d + .e.h, .f .c > .d.g + .e.h;
}

<===> isolated/output-libsass.css
a {
b: .f .c > .g ~ .d + .e.h, .f .c > .g.d + .e.h;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ a {
a {b: selector-unify(".c + .d", ".e ~ .f")}

<===> and_sibling/distinct/output.css
a {
b: .e ~ .c + .d.f, .c.e + .d.f;
}

<===> and_sibling/distinct/output-libsass.css
a {
b: .e ~ .c + .d.f, .e.c + .d.f;
}
Expand Down Expand Up @@ -52,6 +57,11 @@ a {
a {b: selector-unify(".c.s1-1 + .s1-2", ".c.s2-1 ~ .s2-2")}

<===> and_sibling/overlap/output.css
a {
b: .c.s2-1 ~ .c.s1-1 + .s1-2.s2-2, .c.s1-1.s2-1 + .s1-2.s2-2;
}

<===> and_sibling/overlap/output-libsass.css
a {
b: .c.s2-1 ~ .c.s1-1 + .s1-2.s2-2, .c.s2-1.s1-1 + .s1-2.s2-2;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
.b ~ y {@extend x}

<===> output.css
.a + x, .b ~ .a + y, .a.b + y {
a: b;
}

<===> output-libsass.css
.a + x, .b ~ .a + y, .b.a + y {
a: b;
}

0 comments on commit 08eb143

Please sign in to comment.