Re: [csswg-drafts] [css-shadow-parts] consider moving part-mapping to style rules

The problem is that the power comes with a cost. Being able to change the presence of a part based on :hover, etc... would mean that we'd have to invent a new mechanism to implement in browser engines. Style invalidation would be a nightmare because now we'd need to first resolve part selectors to see if any part names have changed, then schedule a secondary path to actually invalidate elements, etc...

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

Received on Friday, 3 August 2018 09:59:08 UTC