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

Re: [css3-page] Styling elements differently based on whether they appear on a left or right page

From: Brad Kemper <brad.kemper@gmail.com>
Date: Sun, 8 Sep 2013 20:32:07 -0700
Message-Id: <F243F0D5-1930-4DA1-B8D9-C8FBA1E26711@gmail.com>
Cc: Lea Verou <lea@verou.me>, Alan Stearns <stearns@adobe.com>, www-style list <www-style@w3.org>
To: Håkon Wium Lie <howcome@opera.com>
On Sep 8, 2013, at 3:26 PM, Håkon Wium Lie <howcome@opera.com> wrote:

> If you want different sidenotes for left and right pages, you can use
> the @sidenote construct:
>  @page :left {
>    @sidenote {
>      border-radius: 0.2em 0 0 0.2em; 
>  }}
>  @page :right {
>    @sidenote {
>      border-radius: 0 0.4em 0.4em 0;
>  }}

My main point is that you shouldn't have that power only for a side note or footnote or element in a margin box. It should be just as easy to selectively style any element within the main content area, based on the page-selecting @rule. 

Also, your rule above means that _everything_ floated into a sidenote gets a border-radius, but that might not be what the author wants. Perhaps only certain boxes in the sidebar should get that, and other sibling boxes should not.
Received on Monday, 9 September 2013 03:32:36 UTC

This archive was generated by hypermail 2.4.0 : Monday, 23 January 2023 02:14:32 UTC