1/ Something like this as an implementation detail in something like styled-components could make this a no-brainer...
But again, the new <style> approach is cheaper than it looks because browsers are smart.
-
-
Though in this case wouldn't the DOM ops make perf favor a non-shadow impl O(N), vs shadow O(2N), assuming both need to use `all: initial`?
-
correction, vs shadow O(N+1)
- 5 more replies
New conversation -
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.