[Bug 23045] [Shadow]: ::part should override styles declared in a shadow tree

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

--- Comment #1 from Takashi Sakamoto <tasak@google.com> ---
I need to say about "the same specificity" case. In the case, document's style
wins.

For example,

<style>
  #host::part(x-part) {
    color: orange;
  }
</style>

<div id="host">
  #shadow-root
    <style>
       #target.targetClass {
         color: blue;
       }
    </style>
    <div id="target" clas="targetClass" part="x-part">style me</div>
</div>

#host::part(x-part)'s specificity is id + pseudo element(=class).
#target.targetClass's specificity is id + class.

So the rules have the same specificity. In the case, "style me"'s color is
orange.

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

Received on Friday, 23 August 2013 03:57:50 UTC