Re: [css3-page][css3-mediaqueries] Changing element styles on page breaks

On Feb 24, 2012, at 6:52 AM, Simon Sapin wrote:

> Le 21/02/2012 17:20, Brad Kemper a écrit :
>> If styling the page box meant typing ':page { color:green; }'
>> instead of just 'color:green;' by itself, it need not have an effect
>> on the way margin boxes inherit. Counter-increment could likewise go
>> inside ruleset braces  with a ':page' selector, without any adverse
>> effect.
> 
> Are you suggesting to change the syntax for declarations in @page?

I was.

> The
> current syntax being eg. @page { margin: 2cm }
> 
> This syntax is already in CSS 2.1 so I don’t think we can change it.

Ah, I didn't realize that, because I never needed to use that version of @page. OK, I withdraw that part of the proposal then. See this instead, for using an unnamed @slot instead:

http://lists.w3.org/Archives/Public/www-style/2012Feb/1259.html

> 2.1
> even defines that @page can contain both declarations and at-rules
> (although no such at-rule is defined in that level) but nothing else.

Received on Friday, 24 February 2012 17:12:46 UTC