mirror of
https://github.com/less/less.js.git
synced 2026-05-01 03:00:22 -04:00
support @host. Fixes #1560
This commit is contained in:
@@ -1508,6 +1508,7 @@ less.Parser = function Parser(env) {
|
||||
case "@right-bottom":
|
||||
hasBlock = true;
|
||||
break;
|
||||
case "@host":
|
||||
case "@page":
|
||||
case "@document":
|
||||
case "@supports":
|
||||
|
||||
@@ -115,3 +115,11 @@ h1 {
|
||||
.upper-test {
|
||||
UpperCaseProperties: allowed;
|
||||
}
|
||||
@host {
|
||||
div {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
::distributed(input::placeholder) {
|
||||
color: #b3b3b3;
|
||||
}
|
||||
|
||||
@@ -114,4 +114,12 @@ foo|* { color: yellow; }
|
||||
h1 { color: green; }
|
||||
.upper-test {
|
||||
UpperCaseProperties: allowed;
|
||||
}
|
||||
@host {
|
||||
div {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
::distributed(input::placeholder) {
|
||||
color: #b3b3b3;
|
||||
}
|
||||
Reference in New Issue
Block a user