less.js icon indicating copy to clipboard operation
less.js copied to clipboard

Some CSS 4 selectors don't work in LESS

Open catamphetamine opened this issue 13 years ago • 7 comments

If i try to use the "E! > F" selector (an E element parent of an F element), it gives me the invalid syntax error. See the specs for more info: http://www.w3.org/TR/selectors4/

catamphetamine avatar Mar 31 '13 12:03 catamphetamine

Is this a feature request?

jonschlinkert avatar Mar 31 '13 15:03 jonschlinkert

well, i would say that it's a bug, since LESS aims to compile pure CSS without any problems

catamphetamine avatar Mar 31 '13 15:03 catamphetamine

LESS aims to compile to valid CSS. Currently, no browser supports CSS 4. I'm closing this for now, please feel free to create a feature request for LESS to support CSS4 selectors (e.g. to convert them to valid CSS/CSS3).

jonschlinkert avatar Mar 31 '13 15:03 jonschlinkert

Ok, fair enough

catamphetamine avatar Mar 31 '13 15:03 catamphetamine

You can create a feature request though, others might find this beneficial as well.

jonschlinkert avatar Mar 31 '13 16:03 jonschlinkert

I know I would!

bracketdash avatar Mar 31 '13 16:03 bracketdash

:+1:

jonschlinkert avatar Mar 31 '13 16:03 jonschlinkert