[Webkit-unassigned] [Bug 103608] [Shadow DOM]: @host @-rule doesn't work

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Nov 29 03:07:59 PST 2012


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





--- Comment #1 from Takashi Sakamoto <tasak at google.com>  2012-11-29 03:10:15 PST ---
Would you try the test after updating style.innerHTML line?
i.e.
   style.innerHTML = '' + 
            '@host {' +
                'div { display:none; }' +
            '}';


Because the spec, http://dvcs.w3.org/hg/webcomponents/raw-file/tip/spec/shadow/index.html#host-at-rule, says:

host
    : HOST_SYM S* '{' S* ruleset* '}' S*
    ;

and ruleset is:

ruleset
  : selector [ ',' S* selector ]*
    '{' S* declaration? [ ';' S* declaration? ]* '}' S*
  ;

So @host needs "selector" and "{ declaration ..}".

Best regards,
Takashi Sakamoto

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