Serious question: why the snark?
-
-
Replying to @davidbrunelle
Serious answer: I thought it was funny as it's a hot, controversial topic and I was looking at this specific code. Real talk: I definitely want to learn more, although I am skeptical of the approach.http://bradfrost.com/blog/link/whats-wrong-with-css-in-js/ …
1 reply 3 retweets 16 likes -
Replying to @brad_frost @davidbrunelle
As a browser engineer, let me be suuuper clear: I've seen this be face-palmingly bad *more often than not*. It requires all the build fu be perfect to not be a net perf disaster.
1 reply 3 retweets 33 likes -
So, yes, when the build stuff is all lined up (and you picked the right system), it can be net-neutral. But is this better for users *on average*? Hrmmmmmm


5 replies 0 retweets 11 likes -
Replying to @slightlylate @brad_frost
I'm in the "it depends on your situation and requirements" camp. Mostly bothered by the tone of the discussions I've seen lately and what I perceive as dogma. (I might also just be cranky)
2 replies 0 retweets 16 likes -
Replying to @davidbrunelle @brad_frost
I get why it can seem like old-guard trying to gatekeep. I'm no fan of CSS (in general) and grok how this can help. Just saying help vs. hurt is currently -- at a minimum -- a contended question.
2 replies 0 retweets 3 likes -
Replying to @slightlylate @davidbrunelle
As a browser person, I bet you have some pretty wild reasons for not being a fan of CSS!
1 reply 0 retweets 2 likes -
Replying to @brad_frost @davidbrunelle
No man, I just hate global variables ;-) But seriously, Shadow DOM is the answer to CSS in the same way that "structured programming" is the answer to assembly.
4 replies 0 retweets 7 likes -
Can you expound a little, my friend? I struggle with this...
1 reply 0 retweets 1 like -
CSS w/o Shadow DOM puts all rules and all elements into the same namespace for rule resolution. This creates all sorts of problems; specificity breaks down at scale.
1 reply 0 retweets 5 likes
Shadow DOM is like a function: local stuff is local, which reduces burden on global namespace while making internal concerns easier to reason about.
-
-
Yes, that I understand. It was your Assembly reference. ;) Regardless, I've helped architect a CSS framework for an Enterprise company using principles that have avoided the things that scare y'all about CSS.
1 reply 0 retweets 4 likes -
Replying to @stefsull @slightlylate and
But Shadow DOM works opposite of how a well-architected framework works. And it's not compatible in many ways.
2 replies 0 retweets 3 likes - 13 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.