- From: Takayoshi Kochi <kochi@google.com>
- Date: Thu, 10 Mar 2016 15:41:18 +0900
- To: www-style list <www-style@w3.org>
- Message-ID: <CADP2=ho2H8jWrrzQ-SyyMKedO+LuB66u4X09nZPd9YTgna-rQQ@mail.gmail.com>
It looks this was discussed in csswg (agenda <https://lists.w3.org/Archives/Public/www-style/2016Mar/0138.html>): > 6. [css-scoping] Cascading Order clarification for Shadow DOM > https://lists.w3.org/Archives/Public/www-style/2016Mar/0056.html but wasn't resolved (due to lack of Tab?): > 02:48 <gregwhitworth> Topic: Scoping and Shadow DOM > 02:49 <gregwhitworth> astearns: Tab said he's fine adding it to scoping and we should comment on the spec text > 02:49 <gregwhitworth> astearns: I brought it up because there has been no response > 02:49 <bkardell_> Ok to comment on the spec text, I missed it and actually need time to wrap my head around it If there is any opinions / concerns, feel free to speak up. On Fri, Mar 4, 2016 at 4:48 PM, Takayoshi Kochi (河内 隆仁) <kochi@google.com> wrote: > Since last TPAC 2015, we have discussed the clarification of cascading > order issue on > https://github.com/w3c/webcomponents/issues/316 > > The problem of the current spec (CSS Scoping Level1, 3.3.1) is > - the ordering is not clear about comparing rules coming from > non-inner/outer shadow roots > - how declarations in style attribute are compared to other rules was > unclear > > We seem to have agreed upon one proposal, essentially > > - Rules coming from other shadow trees are compared in tree-of-trees order > (one coming earlier in the order wins without !important, coming later > wins with !important) > - For style attribute, it is treated as if it is scoped to the element > > The original proposal was from Rune Lillesveen [1], and further > clarification > proposal from Hayato Ito [2]. > > The corresponding test is posted to > http://w3c-test.org/shadow-dom/styles/shadow-cascade-order.html > > If there is no objection on this list, we'd like this clarifications to be > applied > to CSS Scoping module. > > Thanks, > > [1] > https://github.com/w3c/webcomponents/blob/gh-pages/proposals/Shadow-DOM-Cascade-Order.md > [2] > https://github.com/w3c/webcomponents/blob/gh-pages/proposals/Shadow-DOM-Cascade-Order-in-v1.md > > -- > Takayoshi Kochi > -- Takayoshi Kochi
Received on Thursday, 10 March 2016 06:42:28 UTC