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

I disagree, I think creating `longhands` inside the loop has no benefits over creating `current longhands` directly:

- It's more complicated to populate `longhands` matching a list of shorthands.
- You get a list of declarations that may or may not match `shorthand`.
- You only care about `shorthand` so the rest are wasted work and thrown away immediately.

Unless I'm missing something, it's only useful if done once, outside the loop. 

-- 
GitHub Notification of comment by AtkinsSJ
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/12193#issuecomment-2882727487 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 06:38:38 UTC