4 ms·
It seems to be to make pages more composable - so at the top level you can specify what order block A and B are stacked, and within A and B you can independentl
by caf 14y ago
It seems to be to make pages more composable - so at the top level you can specify what order block A and B are stacked, and within A and B you can independently specify what order the blocks that make those up are stacked.
This way you can change the relative order of A and B without worrying about how those blocks are internally structured, and whether they use z-index themselves.
- cousin_it 14y agoThat's an interesting rationale, but pages will never be composable as long as CSS is cascading.
- Someone 14y agoThat is being worked on: http://www.w3.org/TR/2012/WD-shadow-dom-20120522/ http://www.w3.org/TR/2012/WD-shadow-dom-20120522/: "7 Styles To enforce upper-boundary encapsulation, CSS rules declared by the document must not apply in a shadow DOM subtree, unless the apply-author-styles flag is set for this subtree. The flag signals that document CSS rules are applicable in the shadow DOM subtree. Conversely, to enforce lower-boundary encapsulation, CSS rules declared in a shadow DOM subtree must not apply in the document tree."