W3C home > Mailing lists > Public > www-style@w3.org > April 2013

Re: [css3-page] feedback

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Wed, 17 Apr 2013 10:55:30 -0700
Message-ID: <CAAWBYDAtiwRAQp+FKURcs7aE1o46OQADv3LHefgd_rPxU3OGtw@mail.gmail.com>
To: Łukasz Bachman <lukaszbachman@gmail.com>
Cc: www-style list <www-style@w3.org>
On Mon, Apr 15, 2013 at 5:41 AM, Łukasz Bachman <lukaszbachman@gmail.com> wrote:
> could anyone point me to working example of CSS Paged Media module
> usage, which renders page numbers on printed PDF? No matter which
> browser I use, it seems that this doesn't work at all. Following
> snippet from your specification won't even go through CSS3 validator:
>
> @page :first {
>   color: green;
>
>   @top-left {
>     content: "foo";
>     color: blue;
>   }
>   @top-right {
>     content: "bar";
>   }
> }
>
> Seems like @top-xxx directives are not allowed inside the @page element.

Browsers have terrible support for the Page module, unfortunately.
For examples of good support, look to CSS-based printing programs,
like PrinceXML, AntennaHouse Formatter, and WeazyPrint.

~TJ
Received on Wednesday, 17 April 2013 17:56:18 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 17 April 2013 17:56:18 UTC