[Bug 28522] New: [Shadow] Cascading for trees of no-inner/outer and no-younger/older relationship

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

            Bug ID: 28522
           Summary: [Shadow] Cascading for trees of no-inner/outer and
                    no-younger/older relationship
           Product: WebAppsWG
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Component Model
          Assignee: dglazkov@chromium.org
          Reporter: kojiishi@gmail.com
        QA Contact: public-webapps-bugzilla@w3.org
                CC: mike@w3.org, public-webapps@w3.org

This issue should land on CSS Scoping spec, but I think it's better to discuss
here and have some level of common understanding before we go www-style,
because complex tree of trees is too much for most members at www-style. If
this doesn't look right, please close and I'll go www-style.

The Shadow Cascading of CSS Scoping spec[1] defines:
 * Outer wins if inner/outer
 * Younger wins if younger/older

But Takashi and I are finding a few cases where trees have more complex
relationships. We should define how cascading occurs in such cases, which wins,
or prohibit.

Case 1: Re-distributions
By using multiple and nesting together, re-distribution can cause such
relationship. Example:
http://jsbin.com/wabigi
div
  div
  SR-OLDER
    div
      content
      SR-NEST-OF-OLDER
        style ::content * {color:red}
        content
  SR-YOUNGER
    style ::content * {color:green}
    shadow

Case 2: :host and shadow-piercing descendant combinator
The combination of :host and shadow-piercing descendant combinator can select
descendants of younger/older trees.

[1] http://dev.w3.org/csswg/css-scoping/#cascading

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Received on Tuesday, 21 April 2015 07:27:59 UTC