mirror of
https://github.com/less/less.js.git
synced 2026-04-09 03:00:20 -04:00
fixed selector attributes not parsing with a '-'
This commit is contained in:
@@ -660,7 +660,7 @@ less.Parser = function Parser(env) {
|
||||
|
||||
if (! $('[')) return;
|
||||
|
||||
if (key = $(/[a-z]+/g) || $(this.entities.quoted)) {
|
||||
if (key = $(/[a-z-]+/g) || $(this.entities.quoted)) {
|
||||
if ((op = $(/[|~*$^]?=/g)) &&
|
||||
(val = $(this.entities.quoted) || $(/[\w-]+/g))) {
|
||||
attr = [key, op, val.toCSS ? val.toCSS() : val].join('');
|
||||
|
||||
@@ -34,6 +34,9 @@ a[href^="http://"] {
|
||||
a[href$="http://"] {
|
||||
color: black;
|
||||
}
|
||||
form[data-disabled] {
|
||||
color: black;
|
||||
}
|
||||
p::before {
|
||||
color: black;
|
||||
}
|
||||
|
||||
@@ -46,6 +46,10 @@ a[href$="http://"] {
|
||||
color: black;
|
||||
}
|
||||
|
||||
form[data-disabled] {
|
||||
color: black;
|
||||
}
|
||||
|
||||
p::before {
|
||||
color: black;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user