Re: [csswg-drafts] [cssom] How safe is it really to shorthandify properties? (#8398)

> I initially thought the [pending-substitution value](https://drafts.csswg.org/css-variables/#pending-substitution-value) might be a problem

Well, I guess it can be a problem if you are trying to copy all the specified styles. Iterating them will just provide the longhands, and they will serialize as empty string. `cssText` is typically safer, but an author who only used variables on longhands may not have thought about this.

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


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

Received on Saturday, 4 February 2023 23:07:30 UTC