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

Re: [css3-page] Stability of sections of Paged Media

From: fantasai <fantasai.lists@inkedblade.net>
Date: Thu, 08 Apr 2010 22:34:28 -0700
Message-ID: <4BBEBC64.108@inkedblade.net>
To: "Tab Atkins Jr." <jackalmage@gmail.com>
CC: Anne van Kesteren <annevk@opera.com>, www-style list <www-style@w3.org>
On 04/08/2010 05:35 PM, Tab Atkins Jr. wrote:
> On Thu, Apr 8, 2010 at 5:15 PM, fantasai<fantasai.lists@inkedblade.net>  wrote:
>> On 04/08/2010 02:51 AM, Anne van Kesteren wrote:
>>>
>>> On Wed, 07 Apr 2010 18:51:31 +0200, Tab Atkins Jr.
>>> <jackalmage@gmail.com>  wrote:
>>>>
>>>> Second, they want to be able to clear out the browser decorations that
>>>> get automatically put into the margin areas. Right now, the only way
>>>> I see to do that is to use the margin areas from Paged Media and
>>>> explicitly set their content to none. That is, have a setup like
>>>> this:
>>>>
>>>> @page {
>>>> @top-left-corner { content: none; }
>>>> @top-left { content: none; }
>>>> @top-center { content: none; }
>>>> @top-right { content: none; }
>>>> ... repeat 12 more times ...
>>>> }
>>>>
>>>> This is because, theoretically, the printing information is specified
>>>> in precisely that form in the UA style sheet.
>>>
>>> I think it would be nicer to have a simple property that you can put
>>> within @page that clears the margins or hides them.
>>>
>>> page-margin-content:none
>>
>> "visibility: hidden" will work for that.
>
> I think Anne meant one that will automagically clear out or hide *all*
> the margins.  Using visibility:hidden requires just as much work as
> using content:none.

Visibility inherits, so you can just write
   @page {
     visibility: hidden;
   }
and that will apply to all the margins. Now, if you happen to be setting
@page backgrounds or borders, you'll lose those, too, but if you're not,
it will have the effect of hiding all margin boxes.

~fantasai
Received on Friday, 9 April 2010 05:35:28 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:26 GMT