[Bug 19681] [Shadow]: Refactor styles to get rid of rule applicability

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

--- Comment #1 from Takashi Sakamoto <tasak@google.com> ---
>There is not /select/ attribute on "shadow". Can you explain why we would need something like this? (possibly on a new bug :P)

So only shadow reference combinator doesn't work for <shadow>? I'm thinking of
something like:

<x-A>
  <template>
    <style>
    content /select/ div.special { color: red; }
    </style>
    <content>
  </template>
</x-a>

<x-B extend="x-A">
  <template>
    <style>
    shadow /select/ div.special { color: blue; }
    </style>
    <shadow>
  </template>
</x-B>

So, x-B cannot apply any styles to distributed nodes?

If we depend on select attribute, we can add our own fake select attribute to
<shadow>. (It doesn't work, but <shadow> can have select.>

I'mean:

<shadow id="x">...

getElementById("x").setAttribute("select", ":first-child");

So, "select" should be used when solving /select/?

Best regards,
Takashi Sakamoto

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

Received on Wednesday, 24 October 2012 02:55:49 UTC