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

Re: [CSS21][css3-page] What happens to !important inside @page rules?

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Tue, 6 Dec 2011 14:15:12 -0800
Message-ID: <CAAWBYDBQGH1vu3W2R0FcGc8dxsX=BuqeApE7zTsYpBHDa+22fQ@mail.gmail.com>
To: "L. David Baron" <dbaron@dbaron.org>
Cc: www-style@w3.org
On Tue, Dec 6, 2011 at 2:06 PM, L. David Baron <dbaron@dbaron.org> wrote:
> http://www.w3.org/TR/CSS21/page.html#page-box and
> http://dev.w3.org/csswg/css3-page/#syntax-page-selector both say
> that declarations are allowed inside of @page rules.  This implies
> that '!important' is allowed, since it's part of the syntax for
> declarations.  However, neither specification says what to do with
> declarations marked '!important'.  Should they gain additional
> priority, and if so, over what?  Or should '!important' instead be a
> parse error?

I believe they should gain priority.  @page rules are cascaded
together descriptor-wise rather than atomically, so it potentially
makes sense to have an !important descriptor in one rule overriding an
otherwise-more-specific descriptor in another rule when they both
apply to the same page.  (For example, a named-page rule defining
something, and a :left rule overriding it with !important.)

Received on Tuesday, 6 December 2011 22:16:02 UTC

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