Re:Introducing Custom Elements
by gambler on Saturday November 19, 2016 @01:11PM
(#12994690)
My sentiment exactly. The thing they show in "live demo" can be done using existing DOM APIs, with less code.
Shadow DOM seems useful as far as isolation of styling is concerned, but it's really weird that it's not part of normal CSS spec. CSS in general needs some form of isolation. People resort to stuff like BEM to work around its absence.
Shadow DOM seems useful as far as isolation of styling is concerned, but it's really weird that it's not part of normal CSS spec. CSS in general needs some form of isolation. People resort to stuff like BEM to work around its absence.