support @host. Fixes #1560

This commit is contained in:
Luke Page
2013-09-22 10:03:50 +01:00
parent 15e8897802
commit 5f20c4aeaa
3 changed files with 17 additions and 0 deletions

View File

@@ -1508,6 +1508,7 @@ less.Parser = function Parser(env) {
case "@right-bottom":
hasBlock = true;
break;
case "@host":
case "@page":
case "@document":
case "@supports":

View File

@@ -115,3 +115,11 @@ h1 {
.upper-test {
UpperCaseProperties: allowed;
}
@host {
div {
display: block;
}
}
::distributed(input::placeholder) {
color: #b3b3b3;
}

View File

@@ -114,4 +114,12 @@ foo|* { color: yellow; }
h1 { color: green; }
.upper-test {
UpperCaseProperties: allowed;
}
@host {
div {
display: block;
}
}
::distributed(input::placeholder) {
color: #b3b3b3;
}