Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upSupport shorthand property "all" #15055
Comments
|
The naive way to implement this would be literally as described: expand it at parse time to hundreds of longhand declarations and cascade all of these. But that sounds expensive, and it’s probably possible to be smarter about it. What does Gecko do? Note: https://drafts.csswg.org/css-variables/#defining-variables
|
|
If we see the
|
There’s two separate phases: parsing, which is when other shorthands are expanded into their longhands, and cascading. So far, longhand declarations expanded from the same shorthand declaration casacde separately. But maybe we can treat |
|
Yeah, that looks reasonable to me, and it's what I had assumed when writing my comment above. |
allis a shorthand property defined in css-cascade spec to set almost all of properties at the same time to a given CSS-wide keyword. So it is mainly a style system thing, which doesn't require any layout support.