W3C home > Mailing lists > Public > www-style@w3.org > December 2014

Re: [css-scoping] What is the specificity of :host, :host(), and :host-context()?

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Mon, 1 Dec 2014 16:20:15 -0800
Message-ID: <CAAWBYDAMXNL6O2z4ZG=jftJL87z47fENGDdZMMXVf+VmbGR4ag@mail.gmail.com>
To: Philip Walton <philip@philipwalton.com>
Cc: www-style list <www-style@w3.org>
On Mon, Dec 1, 2014 at 3:35 PM, Philip Walton <philip@philipwalton.com> wrote:
>> Per <http://dev.w3.org/csswg/css-scoping/#cascading>, rules from outside a
>> shadow tree always win against rules within a shadow tree, when they
>> attempt to style the same element.
> Hmmm, then it seems like there may be a bug in blink. In my example, the
> selector `:host(element-name)` wins over the universal selector. Should that
> not be the case?

Yes, that behavior is incorrect per spec.

Received on Tuesday, 2 December 2014 00:21:03 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:49 UTC