css-architecture icon indicating copy to clipboard operation
css-architecture copied to clipboard

Shadow DOM support note

Open moebiusmania opened this issue 7 years ago • 4 comments

hi, mentioning your post:

If you're familiar with the Web Components spec, think of this as getting the style isolation benefits of the Shadow DOM without having to care about browser support (or whether or not the spec ever gets serious traction).

the support/traction of Shadow DOM (especially V1) you are reffering to it's very much an opinion rather than a fact :)

http://caniuse.com/#feat=shadowdomv1 https://blogs.windows.com/msedgedev/2016/02/03/2016-platform-priorities/#pjjDg6AZfqjC9Zc0.97

Chrome supports it (mobile too), latest Safari supports it (mobile too), Firefox and Edge are developing this feature... so it doesn't seem so out of sight.

It would be fair enough if you add this links to give correct informations to readers or specify that is just your personal opinion.

thanks for the great article!

moebiusmania avatar Nov 11 '16 15:11 moebiusmania

thanks for the great article!

And thank you for such insightful feedback!

I'm actually aware of the most recent developments in the space (proof 😇 ), and I tried to bring this up in the article as well:

Despite some recent glimmers of hope, the Web Components spec hasn't made great progress in recent years

But even with this fresh addition to Safari you've still only got support in 2 of the big 4 browsers. Not everyone runs the latest versions, so you can safely assume 1 of the big 4. And even for the browsers that do support it, the implementation is far from uniform.

If I sound overly negative about the developments in the Web Components space, it's because I was very excited about it when first announced years ago, and then decreasingly confident of their future as time went on. The recent popularity of React doesn't help, as it's publicly stated its opposition to the spec.

Still hopeful to be proven wrong, though! :)

jareware avatar Nov 12 '16 17:11 jareware

I do not completely agree on counting Safari and Chrome as 1 instead of 2 of the big 4 since they have the user base made almost entirely of the latest version (thanks to Chrome silent updates and update ratio in the first month for iOS & macOS), but my point is not about arguing of this :) but is to give more awareness of the Shadow DOM situation to the readers of your guide.

I think we can close the thread here, thanks!

moebiusmania avatar Nov 13 '16 15:11 moebiusmania

Thanks for the feedback, I'll definitely adjust my wording towards the positive when I revisit this article! :)

jareware avatar Nov 14 '16 15:11 jareware

Whoops, reopening...

jareware avatar Nov 14 '16 15:11 jareware