W3C home > Mailing lists > Public > www-style@w3.org > July 2014

[css-scoping] :host-context() feedback

From: dgs700 <dgs700@gmail.com>
Date: Thu, 19 Jun 2014 09:29:41 +0000
Message-ID: <CACziikzKPZwCxUEHim_eKd9knCZcDb2La8v-pF0jsLKjR1isBg@mail.gmail.com> (sfid-20140619_092947_949233_5FCD6AEE)
To: www-style@w3.org
Hi there,

Came across this one while doing research for my book on UI components:

http://www.amazon.com/AngularJS-Web-Component-Development-Components/dp/0321969103

I do hope the idea of shadow DOM CSS ascending the tree hierarchy is
deleted.  This is what I will have to say about in my book:

"Hopefully this one never sees the light of day in browser CSS standards!
It is akin to JavaScript that pollutes the global context, and it violates
the spirit of component encapsulation.  The use case being posited that
page authors may choose to "opt-in" to styles provided by the component is
extremely weak.  What is highly likely to happen is the same "path of least
resistance" rushed development where off-shore developers mis-use the
pseudo class to quickly produce the required visual effect.  Debugging and
removing this crap later would be nothing short of nightmarish for the
developer who ultimately must maintain the code."

Regards,

Dave Shapiro
Received on Wednesday, 23 July 2014 14:22:51 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:39:23 UTC