Re: [csswg-drafts] [cssom] Serialization of a declaration block not idempotent in presence of logical properties. (#3244)

> resume the steps labeled declaration loop with interfering

Can't just jump from `declaration` to `interfering`, since there could be unrelated declarations in between:

`border-top-width: 1px; color: red; border-block-start-style: none; border-top-style: solid; border-top-color: green`

Should not skip `color: red`. Also, there is no guarantee that `shorthand` will be serializable by the time that we reach the declaration in `current longhands` that appears after `interfering` and has the same logical group with opposite logic.

My concern with trying too hard to find the best serialization when there are logical properties is that it can make it much harder to also improve things like #2515. Optimizing for 2 different things is tricky.

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


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

Received on Monday, 31 October 2022 18:12:48 UTC