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

If we did that, what's the point of doing this in CSS? Also, we'd still have to keep matching those IDs & classes to find out if any given element defines a part or not.

Here's another problem. If we did this in CSS, I bet my money on someone coming around and asking for a DOM event whenever the presence of a part changes (i.e. appears / disappears). We won't be able to implement that because it would basically involve browser engines constantly evaluating CSS selectors which define parts to decide whether any given DOM mutation should result in the firing of such an event.

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

Received on Friday, 3 August 2018 22:19:02 UTC