Skip to content

Commit

Permalink
Make conformant, add sass to path
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesnw committed Oct 31, 2024
1 parent a1a45cc commit 46b628c
Show file tree
Hide file tree
Showing 6 changed files with 254 additions and 93 deletions.
12 changes: 6 additions & 6 deletions spec/arguments/invocation.hrx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ Error: Positional arguments must come before keyword arguments.

<===>
================================================================================
<===> function/error/multi-line-arguments/declaration/input.sass
<===> function/error/sass/multi-line-arguments/declaration/input.sass
@function a(
$b,
$c
Expand All @@ -68,7 +68,7 @@ Error: Positional arguments must come before keyword arguments.
e
f: a(g, h)

<===> function/error/multi-line-arguments/declaration/error
<===> function/error/sass/multi-line-arguments/declaration/error
Error: expected ")".
,
1 | @function a(
Expand All @@ -78,7 +78,7 @@ Error: expected ")".

<===>
================================================================================
<===> function/error/multi-line-arguments/invocation/input.sass
<===> function/error/sass/multi-line-arguments/invocation/input.sass
@function a($b, $c)
@return d

Expand All @@ -88,7 +88,7 @@ e
h
)

<===> function/error/multi-line-arguments/invocation/error
<===> function/error/sass/multi-line-arguments/invocation/error
Error: expected ")".
,
5 | f: a(
Expand All @@ -98,14 +98,14 @@ Error: expected ")".

<===>
================================================================================
<===> function/arguments/input.sass
<===> function/arguments/sass/input.sass
@function a($b, $c)
@return d

e
f: a(g, h)

<===> function/arguments/output.css
<===> function/arguments/sass/output.css
e {
f: d;
}
119 changes: 93 additions & 26 deletions spec/css/custom_properties/trailing_whitespace.hrx
Original file line number Diff line number Diff line change
@@ -1,34 +1,101 @@
<===> scss/input.scss
.trailing-whitespace {
--space: value ;
--tab: value ;
--newline: value
<===> scss/space/input.scss
a {
--b: c ;
}

<===> scss/space/output.css
a {
--b: c ;
}

<===>
================================================================================
<===> scss/tab/input.scss
a {
--b: c ;
}

<===> scss/tab/output.css
a {
--b: c ;
}

<===>
================================================================================
<===> scss/newline/input.scss
a {
--b: c
;
--before-closing-brace: value
}

<===> scss/output.css
.trailing-whitespace {
--space: value ;
--tab: value ;
--newline: value ;
--before-closing-brace: value ;
<===> scss/newline/output.css
a {
--b: c ;
}

<===>
================================================================================
<===> scss/before-closing-brace/input.scss
a {
--b: c
}

<===> scss/before-closing-brace/output.css
a {
--b: c ;
}

<===>
================================================================================
<===> sass/input.sass
.trailing-whitespace
--space: value
--tab: value
--newline: value

--before-closing-brace: value

<===> sass/output.css
.trailing-whitespace {
--space: value;
--tab: value;
--newline: value;
--before-closing-brace: value;
<===> sass/space/input.sass
a
--b: c

<===> sass/space/output.css
a {
--b: c;
}

<===>
================================================================================
<===> sass/tab/input.sass
a
--b: c

<===> sass/tab/output.css
a {
--b: c;
}

<===>
================================================================================
<===> sass/newline/input.sass
a
--b: c

--d: e


<===> sass/newline/output.css
a {
--b: c;
--d: e;
}

<===>
================================================================================
<===> sass/before-block-end/input.sass
a
--b: c

d
--e: f

<===> sass/before-block-end/output.css
a {
--b: c;
}

d {
--e: f;
}
130 changes: 112 additions & 18 deletions spec/css/custom_properties/value_interpolation.hrx
Original file line number Diff line number Diff line change
Expand Up @@ -18,45 +18,139 @@
--in-uri: uri(foo3bar);
}

<===>
================================================================================
<===> scss/alone/input.scss
a{
--b: #{1 + 2};
}

<===> scss/alone/output.css
a {
--b: 3;
}

<===>
================================================================================
<===> scss/in-list/input.scss
a{
--b: c #{1 + 2} d;
}

<===> scss/in-list/output.css
a {
--b: c 3 d;
}

<===>
================================================================================
<===> scss/in-string/input.scss
a{
--b: "c#{1 + 2}d";
}

<===> scss/in-string/output.css
a {
--b: "c3d";
}

<===>
================================================================================
<===> scss/in-ident/input.scss
a{
--b: c#{1 + 2}d;
}

<===> scss/in-ident/output.css
a {
--b: c3d;
}

<===>
================================================================================
<===> scss/in-uri/input.scss
a{
--b: uri(c#{1 + 2}d);
}

<===> scss/in-uri/output.css
a {
--b: uri(c3d);
}

<===>
================================================================================
<===> scss/linebreak-interpolation/input.scss
.a{
a{
--b: #{1
+
2};
}

<===> scss/linebreak-interpolation/output.css
.a {
a {
--b: 3;
}

<===>
================================================================================
<===> sass/input.sass
.value-interpolation
--alone: #{1 + 2}
--in-list: a #{1 + 2} c
--in-ident: foo#{1 + 2}bar
--in-string: "foo#{1 + 2}bar"
--in-uri: uri(foo#{1 + 2}bar)
<===> sass/alone/input.sass
a
--b: #{1 + 2}

<===> sass/linebreak-interpolation/output.css
<===> sass/alone/output.css
a {
--b: 3;
}

<===> sass/output.css
.value-interpolation {
--alone: 3;
--in-list: a 3 c;
--in-ident: foo3bar;
--in-string: "foo3bar";
--in-uri: uri(foo3bar);
<===>
================================================================================
<===> sass/in-list/input.sass
a
--b: c #{1 + 2} d

<===> sass/in-list/output.css
a {
--b: c 3 d;
}

<===>
================================================================================
<===> sass/in-string/input.sass
a
--b: "c#{1 + 2}d"

<===> sass/in-string/output.css
a {
--b: "c3d";
}

<===>
================================================================================
<===> sass/in-ident/input.sass
a
--b: c#{1 + 2}d

<===> sass/in-ident/output.css
a {
--b: c3d;
}

<===>
================================================================================
<===> sass/in-uri/input.sass
a
--b: uri(c#{1 + 2}d)

<===> sass/in-uri/output.css
a {
--b: uri(c3d);
}

<===>
================================================================================
<===> error/sass/linebreak-interpolation/input.sass
.a
a
--b: #{1
+
2}
Expand Down
Loading

0 comments on commit 46b628c

Please sign in to comment.