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

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

From: Alan Stearns <stearns@adobe.com>
Date: Tue, 6 Nov 2012 19:29:58 -0800
To: "Kang-Hao (Kenny) Lu" <kanghaol@oupeng.com>, WWW Style <www-style@w3.org>
Message-ID: <CCBF0B52.16686%stearns@adobe.com>
On 11/6/12 9:10 AM, "Kang-Hao (Kenny) Lu" <kanghaol@oupeng.com> wrote:

>Either I am too confused or the spec contradicts CSS 2.1.
>  # 'content'
>  #
>  # none
>  #
>  # The pseudo-element is not generated.
>I suppose 4) is overridden when 'flow-from' isn't 'none' and the spec
>should probably say that.

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¹.

I added this sentence to the flow-from definition in css3-regions:

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].



[1] http://dev.w3.org/csswg/css4-pseudo/#gen-content
Received on Wednesday, 7 November 2012 03:30:32 UTC

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