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

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

            Bug ID: 23045
           Summary: [Shadow]: ::part should override styles declared in a
                    shadow tree
    Classification: Unclassified
           Product: WebAppsWG
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Component Model
          Assignee: dglazkov@chromium.org
          Reporter: tasak@google.com
        QA Contact: public-webapps-bugzilla@w3.org

According to CSS cascading order, any style in a shadow tree wins comparing
with ::part declared in document. (just talking about scope, specificity and
order of appearance).

However, it would be better to apply ::part in document if the rule has higher
specificity than all styles in a shadow tree.

For example,

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

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

If we cannot override, "style me"'s color is blue. We cannot change.
So this makes it much more difficult to create <style> in a shadow tree when we
want to use "::part".

c.f. http://crbug.com/273138

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

Received on Friday, 23 August 2013 02:29:14 UTC