Skip to content

Commit 576a0f0

Browse files
earlAchromaticjakubpawlowicz
authored andcommitted
Fixes #1242 - add support for the "@layer" keyword (#1243)
1 parent 690fd43 commit 576a0f0

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

lib/tokenizer/tokenize.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ var BLOCK_RULES = [
2626
'@keyframes',
2727
'@media',
2828
'@supports',
29-
'@container'
29+
'@container',
30+
'@layer'
3031
];
3132

3233
var IGNORE_END_COMMENT_PATTERN = /\/\* clean-css ignore:end \*\/$/;

test/fixtures/issue-1242-min.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
@layer custom{
2+
.test{font-size:15px;font-weight:700;line-height:10px}
3+
}

test/fixtures/issue-1242.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
@layer custom {
2+
.test {
3+
font-size: 15px;
4+
font-weight: bold;
5+
line-height: 10px;
6+
}
7+
}

0 commit comments

Comments
 (0)