[Bug 28591] [Shadow]: Figure out a good replacement for /deep/ in testing scenarios

https://www.w3.org/Bugs/Public/show_bug.cgi?id=28591

--- Comment #4 from Elliott Sprehn <esprehn@gmail.com> ---
(In reply to Anne from comment #3)
> Note that an alternative is that we introduce .deepQuery() or some such.

deepQuery is not enough, you don't want to match a descendant selector across a
ShadowRoot boundary since ".a .b" means something really different. You'd still
need a special combinator to signal where the scope crossing should be in the
selector expression.

ex.
.panel .image

All images inside panels contained in a single scope.

.panel /deep/ .image

All images anywhere below a panel, even if they're inside a nested widget.

This is important because it maintains the "don't accidentally cross a
boundary" principle.

We need something like ::shadow as well.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Monday, 4 May 2015 06:21:04 UTC