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

Re: [css3-regions] can ::before/::after become a CSS Region?

From: Kang-Hao (Kenny) Lu <kanghaol@oupeng.com>
Date: Wed, 07 Nov 2012 12:02:49 +0800
Message-ID: <5099DD69.7030100@oupeng.com>
To: Alan Stearns <stearns@adobe.com>
CC: WWW Style <www-style@w3.org>
Thanks! That would make it a lot clearer. I am going to be a bit more
picky however..

(12/11/07 11:29), Alan Stearns wrote:
> Yes, the spec should say something about this. There's some text in
> css4-pseudo [1] that's meant to describe this change:
> ---
> A CSS rule using ::before or ::after creates a pseudo-element
> only if the computed values of the Œcontent¹ property
> and the Œflow-from¹ property [CSS3-REGIONS] are not both Œnone¹.
> ---
> Block container pseudo-elements where the value of ¹flow-from'
> computes to an <ident> and the value of Œcontent¹ computes to
> Œnone¹ are generated as CSS Regions, which is an update to the
> behavior described in [CSS21].
> ---

These two sentences give me two different results for a case like:

  span::before { display: inline; flow-from: test; counter-reset: x 10;
} span::after { content: counter(x); }

The former suggests "10" and the latter suggests "0". Also, what should
happen for a case like

  span::before { display: inline; flow-from: test; flow-into: test;
counter-reset: x 10; } span::after { content: counter(x); }

Again the former suggests "10" and I can't really tell what the latter
is suggesting.

No opinion whatsoever to which is right.

Web Specialist, Oupeng Browser, Beijing
Try Oupeng: http://www.oupeng.com/
Received on Wednesday, 7 November 2012 04:03:23 UTC

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