-
Notifications
You must be signed in to change notification settings - Fork 195
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
Support CSS @property
rule (Less.js 3.0.0)
#105
Comments
@property
rule (Less.js 3.x)@property
rule (Less.js 3.5.0)
Example: @property --item-size {
syntax: "<percentage>";
inherits: true;
initial-value: 40%;
}
html {
--item-size: 20%;
}
.example {
width: var(--item-size);
} Upstream Less.js 2.5.3 at http://ecomfe.github.io/est/fiddle/#version=2.5.3&autoprefix=false&est=false&autorun=false
This is similar to how Less.php v4.4.0 failed:
NOTE: This is unrelated to the Less.js "property" class, which refers to each name/value declaration in a CSS block, for example, In Less.js there is also the "Property accessor" feature new in Less.js v3.5.0, which allows any property to be accessed as if it is a Less variable. E.g. https://lesscss.org/features/#variables-feature-properties-as-variables-new- Finally, there is string interpolation for properties at https://lesscss.org/features/#variables-feature-properties
But if I understand correctly, this request isn't for any Less.js feature, but rather about CSS's native |
@property
rule (Less.js 3.5.0)@property
rule (Less.js 3.0.0)
This has been resolved as part of Less.php 5.0, as part of porting over the permissive parsing and arbitrary at-rule support (https://phabricator.wikimedia.org/T368408). |
Hi :)
A feature request for
@property
rule https://developer.mozilla.org/en-US/docs/Web/CSS/@propertyIt seems already implemented upstream https://github.com/puckowski/less.js/blob/master/packages/less/src/less/tree/property.js
Thank you.
The text was updated successfully, but these errors were encountered: