Re: [csswg-drafts] `window.getComputedStyle` equivalent `style()` function in CSS (#8968)

That's inherently circular. Basically a duplicate of #5729, see Tab's comment explaining the problem.
Note the circularity can be avoided by taking the styles from the parent element, that's #2864.
The selector idea also seems problematic: what if there are multiple elements matching the selector, what if they are descendants (circularity), etc.

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


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

Received on Thursday, 15 June 2023 12:38:16 UTC