Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LESS processes non-spec properties #2769

Closed
corysimmons opened this issue Jan 9, 2016 · 3 comments
Closed

LESS processes non-spec properties #2769

corysimmons opened this issue Jan 9, 2016 · 3 comments

Comments

@corysimmons
Copy link

We've had a few complaints from people using LESS that our PostCSS grid system isn't working when used with LESS.

It seems like LESS is tripping up when it gets to a property that is set as a fraction (e.g. lost-column: 1/3;).

Is this anticipated behavior? Would it be possible for LESS to ignore entire non-spec CSS declarations (or at least their properties)?

@seven-phases-max
Copy link
Member

See --strict-math. (And escaping as a workaround when --strict-math=on is not desired).

For a discussion on possible improvements see #1880.


As for "non-spec" declarations, in Less there's no difference between color, lost-column or fnord property names. It's totally property identifier agnostic (well, not counting some "to-be-removed" exceptions also mentioned in #1880).

@seven-phases-max
Copy link
Member

Closing as expected behavior.

@peterramsing
Copy link

Yup, this looks to be expected and even documented. Thanks @seven-phases-max for the explanation! 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants
@corysimmons @peterramsing @seven-phases-max and others