mirror of
https://github.com/less/less.js.git
synced 2026-05-01 03:00:22 -04:00
support shadow dom selectors. fixes #1801
This commit is contained in:
@@ -1343,9 +1343,13 @@ less.Parser = function Parser(env) {
|
||||
//
|
||||
combinator: function () {
|
||||
var c = input.charAt(i);
|
||||
|
||||
if (c === '>' || c === '+' || c === '~' || c === '|') {
|
||||
|
||||
if (c === '>' || c === '+' || c === '~' || c === '|' || c === '^') {
|
||||
i++;
|
||||
if (input.charAt(i) === '^') {
|
||||
c = '^^';
|
||||
i++;
|
||||
}
|
||||
while (isWhitespace(input, i)) { i++; }
|
||||
return new(tree.Combinator)(c);
|
||||
} else if (isWhitespace(input, i - 1)) {
|
||||
|
||||
Reference in New Issue
Block a user