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: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Fri, 19 Oct 2012 12:46:59 -0700
Message-ID: <CAAWBYDD5a+ioQH6BYkch0Q7Kio72SGYVY9pkJhBzSkvijusd9Q@mail.gmail.com>
To: Simon Sapin <simon.sapin@kozea.fr>
Cc: Leif Arne Storset <lstorset@opera.com>, WWW Style <www-style@w3.org>
On Fri, Oct 19, 2012 at 9:00 AM, Simon Sapin <simon.sapin@kozea.fr> wrote:
> I think that the only sane way to handle viewport-percentage units in paged
> media is to treat them like other layout-based percentages: keep the
> percentage in the computed value and only convert it to an absolute unit in
> used values.
> This should not change the layout, even if these computed values end up
> being inherited: the initial containing block is still the same. It might be
> visible in the CSSOM, but I’m not sure.
> Spec-wise however, this is in contradiction with the "Computed value" line
> of every property that accept <length>.

No, this doesn't work.  It *will* change the layout, because the page
size *is* the initial containing block for the contents on that page.

It seems clear that this is a trivial circular dependency, and we
should resolve it in the standard way, which is just having them
compute to 'auto' or similar.

Received on Friday, 19 October 2012 19:47:46 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:22 UTC