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

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

Sorry, I did not mean to copy/paste code, but I meant `declarations.splice(declarations.indexOf(currentLonghands[0]), 0, ...declarations.splice(declarations.indexOf(interfering), 1))` in JS code (were `declarations` is a shallow copy of the block declarations).

You also "jump" declarations when you look forward, no?

> 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 https://github.com/w3c/csswg-drafts/issues/2515.

Yeah, I know about this issue but I have not given much thought to it. The problem with *find the best serialization* seems to draw the line where it becomes too much when crossed.

-- 
GitHub Notification of comment by cdoublev
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3244#issuecomment-1297592111 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 19:48:25 UTC