[Webkit-unassigned] [Bug 101116] New: Text nodes in shadow roots don't inherit style properly

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Nov 2 15:48:19 PDT 2012


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

           Summary: Text nodes in shadow roots don't inherit style
                    properly
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Unspecified
        OS/Version: Unspecified
            Status: NEW
          Keywords: HasReduction
          Severity: Normal
          Priority: P2
         Component: Layout and Rendering
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: esprehn at chromium.org


Test case:

shadow = new WebKitShadowRoot(document.body)
span = document.createElement('span')
span.textContent = "foo";
shadow.appendChild(span);
shadow.appendChild(document.createTextNode("bar"))
document.body.offsetTop; // cause a layout.
document.body.style.fontSize = '5em';

You should see foo bar in big text, but you only see "foo" in big text.

The bug is here:

http://code.google.com/searchframe#OAMlx_jo-ck/src/third_party/WebKit/Source/WebCore/dom/Text.cpp&exact_package=chromium&l=259

and SVG has a hack for it:

http://code.google.com/searchframe#OAMlx_jo-ck/src/third_party/WebKit/Source/WebCore/svg/SVGTRefElement.cpp&exact_package=chromium&q=SVGTRefElement&type=cs&l=156

This means text in a shadow root is broken for zooming and style changes.

-- 
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