[Webkit-unassigned] [Bug 105404] New: [Shadow DOM]: Wrong type of CSSRule when @Host rule is used

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Dec 19 01:34:16 PST 2012


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

           Summary: [Shadow DOM]: Wrong type of CSSRule when @Host rule is
                    used
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Unspecified
        OS/Version: Unspecified
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: HTML DOM
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: sgrekhov at unipro.ru


When @Host rule is used not in shadow root then CSSRule object returned by cssRules property, not CSSHostRule

Chrome 25.0.1364.0 canary. Test: 

<html>
<head>
<script type="text/javascript">
function test() {
    var d = document;
    var host = d.createElement('div');
    d.body.appendChild(host);

    var style = d.createElement('style');
    style.innerHTML = '' + 
            'span { color: blue; }' +
            '@host {' +
            'div { color: red; }' +
            '}';
    d.head.appendChild(style);

    alert('Expected 1001, actual ' + d.styleSheets[0].cssRules[1].type);
 }
</script>
</head>
<body onload="test()">
</body>
</html>

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