-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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 fails to parse values from web platform tests: #3396
Comments
Fails on all of these: --at-keyword-unknown: @foobar;
--at-keyword-known: @media;
--at-keyword-unknown-block: @foobar {};
--at-keyword-known-block: @media {}; according to http://lesscss.org/less-preview |
This also fails but should succeed, according to custom property documentation: .box {
--width: ; // should succeed, according to W3C documentation
--width:; // should fail, according to W3C documentation
} Even though this succeeds: .box {
width: ;
} Note that the W3C actually notes that Side note: I'm note sure if this should be supported in Less or not, as I'm not sure of the practical application (dummy placeholder props?). Just noting that it doesn't pass the spec in this regard. This part needs some other input from @less/core. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
anti-stale |
According to: https://github.com/web-platform-tests/wpt/blob/master/css/css-variables/test_variable_legal_values.html
...Less should be able to parse a block like this for custom properties:
However, as expected, Less fails with the at-keywords in custom properties (
variable @foobar is undefined
). Since custom property parsing is already permissive with logic for failing over (accepting almost anything until a closing outer semi-colon), it makes sense to allow "variable-like" values in custom properties to pass-through.Thoughts?
The text was updated successfully, but these errors were encountered: