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
master
Alexander Ryzhikov 2018-04-04 15:19:51 +03:00 committed by Evilebot Tnawi
parent c2ee047a5d
commit 6d7bc4402f
3 changed files with 21 additions and 0 deletions

View File

@ -959,6 +959,7 @@ function maybeToLowerCase(value) {
value.includes("#") ||
value.startsWith("%") ||
value.startsWith("--") ||
value.startsWith(":--") ||
(value.includes("(") && value.includes(")"))
? value
: value.toLowerCase();

View File

@ -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;
}
`;

View File

@ -0,0 +1,5 @@
@custom-selector :--camelCase .my-css-selector;
:--camelCase {
content: red;
}