fix: don't lowercase custom selectors variable name #4254 (#4255)

* fix: don't lowercase custom selectors variable name #4254

* proper fix for camelCased custom selector

* Move customs-selectors case snapshots to correct place
This commit is contained in:
Alexander Ryzhikov authored and Evilebot Tnawi committed 2018-04-04 15:19:51 +03:00
1 parent c2ee047a5d
commit 6d7bc4402f
3 files changed
+21

No files matched your search

+1
View File
@@ -959,6 +959,7 @@ function maybeToLowerCase(value) {
value.includes("#") ||
value.startsWith("%") ||
value.startsWith("--") ||
value.startsWith(":--") ||
(value.includes("(") && value.includes(")"))
? value
: value.toLowerCase();
@@ -748,3 +748,18 @@ table {
}
`;
exports[`custom-selectors.css 1`] = `
@custom-selector :--camelCase .my-css-selector;
:--camelCase {
content: red;
}
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@custom-selector :--camelCase .my-css-selector;
:--camelCase {
content: red;
}
`;
+5
View File
@@ -0,0 +1,5 @@
@custom-selector :--camelCase .my-css-selector;
:--camelCase {
content: red;
}