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

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

From: Kang-Hao (Kenny) Lu <kanghaol@oupeng.com>
Date: Wed, 07 Nov 2012 01:10:11 +0800
Message-ID: <50994473.9080404@oupeng.com>
To: WWW Style <www-style@w3.org>
Either I am too confused or the spec contradicts CSS 2.1. In particular,
this set of statements

1)
  # Note 2 - CSS Regions do not have to be elements
  #
  # CSS Regions can be pseudo-elements, such as ‘::before’ and
  # ‘::after’

2)
  # 3.2. The ‘flow-from’ property
  #
  # Applies To:
  #
  # Non-replaced block containers.

3)
  # 3.2. The ‘flow-from’ property
  #
  # <ident>
  #
  # If the ‘content’ property computes to something else than
  # ‘normal’ (or ‘none’ for a pseudo-element), the block container
  # does not become a CSS Region.

4)
  # 'content'
  #
  # none
  #
  # The pseudo-element is not generated.

seems to be contradictory because a) a ::before with 'content' not
computed to 'none' isn't a CSS Region by 3) and b) a 'content: none'
::before doesn't generate a box by 4) and so 'flow-from' doesn't apply
by 2) as I don't think ::before can ever generate a block container in
this case.

I suppose 4) is overridden when 'flow-from' isn't 'none' and the spec
should probably say that.


Cheers,
Kenny
-- 
Web Specialist, Oupeng Browser, Beijing
Try Oupeng: http://www.oupeng.com/
Received on Tuesday, 6 November 2012 17:10:52 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:21:02 GMT