Re: [css-houdini-drafts] [css-paint-api] should registered paint names be somehow limited to shadow trees they are registered in?

This has the same problems as `@font-face` as @tabatkins mentions, for
 example if you do `background-image: inherit` and that pulls in a 
`paint(foo)` or if you do `::slotted(x) { background: paint(...); }` 
that would resolve against the scope of x, not the shadow that defined
 the rule.

Fonts are super hard, you do actually expect them to apply all over 
even if the face is defined in the wrong scope. For that reason we 
forbid font faces in shadow roots for now.

Painters might be okay, it's what we did for animations, though it has
 caused some mild developer confusion: 
https://bugs.chromium.org/p/chromium/issues/detail?id=382498 making it
 resolve against the location where the rule is defined is not 
something that's easily possible.

-- 
GitHub Notification of comment by esprehn
Please view or discuss this issue at 
https://github.com/w3c/css-houdini-drafts/issues/223#issuecomment-227236624
 using your GitHub account

Received on Monday, 20 June 2016 19:00:21 UTC