Re: [csswg-drafts] [cssom] "Serialize a CSS declaration block" does redundant work collecting longhands (#12193)

In my opinion, populating `longhands` in the shorthand loop is appropriate because most properties are not mapped by a shorthand, and even fewer are mapped by more than one shorthand.

You can populate `longhands` before the shorthand loop and skip doing it when `shorthands` is empty, but I am not convinced that would be clearer in the spec, or faster in implementations.

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


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

Received on Thursday, 15 May 2025 02:51:35 UTC