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