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

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.
...
>4)
>  # '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].
---

Thanks,

Alan

[1] http://dev.w3.org/csswg/css4-pseudo/#gen-content

Received on Wednesday, 7 November 2012 03:30:32 UTC