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

 I'm not sure why this makes IDL expensive, the map is in the stylesheet,
so you mutate it as you would any other rule in the stylesheet. There
wouldn't be a partmap attribute or equivalent IDL.

The implementation is the biggest concern for me. At least in blink it
seems fairly implementable since Blink goes element by element. For each
element it moves up the tree, so as we enter a new scope we would run these
rules first to find out what the current element is named in this scope. It
doesn't seem very hard but it definitely is special, that said you have
have something doing roughly the same thing to apply the partmap as you
move up through scopes. Whether you base it on an explicit map or on
something like this.


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

Received on Thursday, 2 August 2018 13:54:43 UTC