Re: [csswg-drafts] [css-shadow-parts] confirm browser support

> Already doable today by just giving the part multiple names. You can say part="button, button-disabled" for instance, then both ::part(button) and ::part(button-disabled) will work.

Yeah, but that is verbose if you have a lot of them. Also you have to forward them all in exposedparts which then becomes verbose too. I agree `[]` is just syntactic sugar but it seems like a very convenient one to me. Maybe doesn't need to be in `::part()` and just in the attribute syntax though, didn't think this through.

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

Received on Friday, 28 September 2018 21:48:45 UTC