Skip to content

Commit 3de8aa7

Browse files
tests: css custom variables (#709)
1 parent df497db commit 3de8aa7

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
:root{--foo:1px;--bar:2px}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
:root {
2+
--foo: 1px;
3+
--bar: 2px;
4+
}

test/simpleTest.js

+3
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ describe("simple", function() {
3838
test("charset directive", "@charset \"UTF-8\";\n .class { a: b c d; }", [
3939
[1, "@charset \"UTF-8\";\n .class { a: b c d; }", ""]
4040
]);
41+
test("custom variables", ":root {--foo: 1px;\n--bar: 2px;}", [
42+
[1, ":root {--foo: 1px;\n--bar: 2px;}", ""]
43+
]);
4144
testError("error formatting", ".some {\n invalid css;\n}", function(err) {
4245
assert.equal(err.message, [
4346
'Unknown word (2:2)',

0 commit comments

Comments
 (0)