I’m trying to share styles across components and the only way I can see to do this is to include the entire stylesheet for each component
-
-
Replying to @adamputinski
Oh, so these are actually different components? Again, code would help.
1 reply 0 retweets 0 likes -
Replying to @slightlylate @adamputinski
...but your best bet is a mixin that cloneNode()s
2 replies 0 retweets 0 likes -
Replying to @slightlylate
Here’s a simple example: https://codepen.io/anon/pen/jGYdJe . Whenever I profile I see Parse Stylesheet run for each instance
1 reply 0 retweets 1 like -
Replying to @adamputinski
Oooohhhh...
@import. Need to dig into that to recall what we do there.1 reply 0 retweets 0 likes -
Replying to @slightlylate
Thanks! I’d love to know if there is a story around how WCs can work with CSS frameworks like SLDS, Bootstrap, etc
1 reply 0 retweets 1 like -
Replying to @adamputinski
I think we found the culprit: https://bugs.chromium.org/p/chromium/issues/detail?id=472923 … Best to inline the style rules for now.
3 replies 0 retweets 0 likes -
-
Replying to @adamputinski
@ElliottZ advises that it may be "per spec", but I can't imagine that's intended. /cc@tabatkins1 reply 0 retweets 0 likes -
No, his comment is that we have some restrictions in how we cache, due to things that may affect the rules that end up matching.
2 replies 0 retweets 1 like
-
-
That one is per spec, and correct. If you don't send caching headers, we can't assume the stylesheet will remain the same across requests.
0 replies 0 retweets 1 likeThanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
& Web Standards TL; Blink API OWNER
Named PWAs w/
DMs open. Tweets my own; press@google.com for official comms.