Skip to content

Commit

Permalink
Fixes #1242 - add support for the "@layer" keyword (#1243)
Browse files Browse the repository at this point in the history
earlAchromatic authored Jan 9, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 87a741c commit a242a99
Showing 3 changed files with 12 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/tokenizer/tokenize.js
Original file line number Diff line number Diff line change
@@ -26,7 +26,8 @@ var BLOCK_RULES = [
'@keyframes',
'@media',
'@supports',
'@container'
'@container',
'@layer'
];

var IGNORE_END_COMMENT_PATTERN = /\/\* clean-css ignore:end \*\/$/;
3 changes: 3 additions & 0 deletions test/fixtures/issue-1242-min.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@layer custom{
.test{font-size:15px;font-weight:700;line-height:10px}
}
7 changes: 7 additions & 0 deletions test/fixtures/issue-1242.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
@layer custom {
.test {
font-size: 15px;
font-weight: bold;
line-height: 10px;
}
}

0 comments on commit a242a99

Please sign in to comment.