Skip to content

Commit 15e525e

Browse files
authored
Use valid media rules in specs. (#995)
A number of specs were using "@media ... {a: b}", which produces invalid CSS. This updates them to use "@media ... {a {b: c}}" instead.
1 parent e086e41 commit 15e525e

File tree

19 files changed

+37
-37
lines changed

19 files changed

+37
-37
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
%foo {bar {@media screen {a: b}}}
1+
%foo {bar {@media screen {a {b: c}}}}
22
.baz {c: d}
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
@media screen and (-webkit-min-device-pixel-ratio: 20), only print {
2-
a: b;
2+
a {
3+
b: c;
4+
}
35
}

spec/libsass/variables_in_media/input.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ $media1: screen;
22
$media2: print;
33
$var: -webkit-min-device-pixel-ratio;
44
$val: 20;
5-
@media #{$media1} and ($var: $val), only #{$media2} {a: b}
5+
@media #{$media1} and ($var: $val), only #{$media2} {a {b: c}}

spec/libsass/variables_in_media/options.yml

Lines changed: 0 additions & 3 deletions
This file was deleted.
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
@media bar12 {
2-
a: b;
2+
a {
3+
b: c;
4+
}
35
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
$baz: 12;
2-
@media bar#{$baz} {a: b}
2+
@media bar#{$baz} {a {b: c}}

spec/misc/media_interpolation/options.yml

Lines changed: 0 additions & 3 deletions
This file was deleted.
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
@media bar12 {
2-
a: b;
2+
a {
3+
b: c;
4+
}
35
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
$baz: 12;
2-
@media bar#{$baz} {a: b}
2+
@media bar#{$baz} {a {b: c}}

spec/scss-tests/123_test_media_interpolation/options.yml

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)