Re: [csswg-drafts] [css-cascade] [css-nesting] Figure out whether we're fine with "shifting up" bare declarations after rules (#8738)

The order they were declared. cssom has rules to change the order if needed if you set a logical property that is already present if a physical property could override it.

But the important property is that they either all match or not match, and they all get applied in order, so you don't need to sort amongst them. With your approach you need to potentially split a declaration block to apply things interleaved. It's not impossible to make it fast with some effort I'm sure, but seems non-trivial to me.

-- 
GitHub Notification of comment by emilio
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/8738#issuecomment-1986390101 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Friday, 8 March 2024 20:43:24 UTC