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

Re: [css books] endnotes, table notes, footnotes, and sidenotes in HTML/CSS

From: Brad Kemper <brad.kemper@gmail.com>
Date: Wed, 8 Apr 2015 15:22:38 -0700
Cc: "www-style@w3.org" <www-style@w3.org>
Message-Id: <6D8017CC-3C31-4DBA-8D98-B4090BEC2065@gmail.com>
To: Håkon Wium Lie <howcome@opera.com>


> On Apr 7, 2015, at 2:20 PM, Håkon Wium Lie <howcome@opera.com> wrote:
> 
> Brad Kemper wrote:
> 
>>> However, the margin-inside and margin-outside properties are not part
>>> of a spec. Perhaps they should, along with padding-inside,
>>> padding-outside, and the corresponding border properties?
>> 
>> I think it would be better to have :left and :right (or :verso and
>> :retro) pseudo-classes, that reflect what page an element is on.
>> Then you could conditionally change backgrounds or whatever you
>> want, without needing a lot of new properties.
> 
> Like this?:
> 
>  aside:left { background: blue }
>  aside:right { background: red }
> 
> I agree, this would be more powerful, without igniting combinatorial
> explosions.

Woops, just replied to a different message about this, but yes, that's the idea. 

For backgrounds you might want a gradient that goes a different direction based on which side you float it to. For width, that might be different on an inside page gutter than on an outside page margin. 
Received on Wednesday, 8 April 2015 22:23:07 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:39:30 UTC