[Webkit-unassigned] [Bug 90661] New: [Shadow] distribute nodes don't inherit styles from parentNodeForRenderingAndStyle.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jul 6 00:28:15 PDT 2012


https://bugs.webkit.org/show_bug.cgi?id=90661

           Summary: [Shadow] distribute nodes don't inherit styles from
                    parentNodeForRenderingAndStyle.
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Unspecified
        OS/Version: Unspecified
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: CSS
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: tasak at google.com
                CC: hayato at chromium.org, tasak at google.com


Created an attachment (id=151026)
 --> (https://bugs.webkit.org/attachment.cgi?id=151026&action=review)
repro

According to Shadow DOM spec, the child nodes of the shadow host that are assigned to the insertion point should inherit the styles from the parent of the insertion point.
However sometimes such a child node don't inherit style from the parent of the insertion point.

The following is a figure showing a DOM tree created in repro.html:

div
  |
  +--div[id=host, style=color:red] ....... shadow-root
          |
          +---div[id=child-a]
          |
          +---div[id=child-b]

shadow-root
  |
  +--- content[select='#child-a']
  |
  +--- div[style=color:blue]
            |
            +---content[select='#child-b']

window.getComputedStyle(document.getElementById('child-b')).color should be 'rgb(0, 0, 255)', but 'rgb(255, 0, 0)'.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list