W3C home > Mailing lists > Public > www-style@w3.org > October 2012

Re: [css3-values][css3-page] Viewport-percentage length units in the page context.

From: Florian Rivoal <florian@rivoal.net>
Date: Sun, 21 Oct 2012 10:49:10 +0200
To: Simon Sapin <simon.sapin@kozea.fr>,Leif Arne Storset <lstorset@opera.com>
CC: WWW Style <www-style@w3.org>
Message-ID: <42200b4b-5081-4d7c-bfa4-46ecdb24b5cb@email.android.com>


Simon Sapin <simon.sapin@kozea.fr> wrote:

>Le 19/10/2012 15:33, Leif Arne Storset a écrit :
>> On Sat, 13 Oct 2012 13:57:11 +0200, Simon Sapin
><simon.sapin@kozea.fr>
>> wrote:
>>
>>> Le 13/10/2012 10:55, Simon Sapin a écrit :
>>>> While writing this, I notice another kind of cycle. css3-page
>defines:
>>>> "The page context inherits from the root element." How about this?
>>>>
>>>>        :root { font-size: 1vw }
>>>>        @page { width: 200em }
>>>>
>>>> I can’t find a satisfying way to resolve this one. Any ideas?
>>
>> How about disallowing the least useful of the two? In my mind,
>expressing
>> font-size in viewport units seems least useful, and there's no
>precedent
>> for sizing fonts relative to a box.
>
>I’ve seen it used: http://css-tricks.com/viewport-sized-typography/

It is also useful if you are using overflow:paged or opera show to make a presentation, and want to scale the font with the viewport, so that your slides fit the available space, and your text remains readable from far.
Received on Sunday, 21 October 2012 08:49:37 GMT

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