You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Lightning CSS does not currently — but should — merge @property declarations for the same property when at the top level of a stylesheet. And could, potentially, do so when multiple are found at the "same" level. For example, if the same property registration existed more than once inside equivalent media queries. According to the spec, for a given property, the latest @property rule in stylesheet order wins.
Notes:
For top-level at least, moving all @property declarations to the beginning seems like a sensible thing to do. But this is obviously not a necessity.
Lightning CSS seems to treat @property inside of @media and @layer as a semi-raw token stream instead of validating and formatting it appropriately.
Lightning CSS does not currently — but should — merge
@property
declarations for the same property when at the top level of a stylesheet. And could, potentially, do so when multiple are found at the "same" level. For example, if the same property registration existed more than once inside equivalent media queries. According to the spec, for a given property, the latest@property
rule in stylesheet order wins.Notes:
@property
declarations to the beginning seems like a sensible thing to do. But this is obviously not a necessity.@property
inside of@media
and@layer
as a semi-raw token stream instead of validating and formatting it appropriately.Playground Link
Input:
Expected:
Actual:
The text was updated successfully, but these errors were encountered: