W3C home > Mailing lists > Public > www-style@w3.org > September 2002

CSS2.1: :before and :after 'display' values

From: Eric A. Meyer <eric@meyerweb.com>
Date: Fri, 20 Sep 2002 10:36:29 -0400
Message-Id: <v04220800b9b0e257a2e6@[192.168.1.31]>
To: www-style@w3.org

    In section CSS2v1:12.1 
(http://www.w3.org/TR/CSS21/generate.html#before-after-content), I 
find the following:

The :before and :after pseudo-elements elements allow values of the 
'display' property as follows:

* If the subject of the selector is a block-level element, allowed 
values are 'none', 'inline' and 'block'. If the value of the 
pseudo-element's 'display' property has any other value, the 
pseudo-element will behave as if its value were 'block'.

    Should 'inline-block' be added to that list of allowed values?  It 
seems to me that if you can make the generated content 'inline' and 
'block', you ought to be able to make it a blend of the two.  There 
are cases in which it would be very useful, arguably even necessary.

--
Eric A. Meyer  (eric@meyerweb.com)  http://www.meyerweb.com/eric/
Author, "Cascading Style Sheets: The Definitive Guide,"
  "Eric Meyer on CSS," "CSS 2.0 Programmer's Reference," and more
   http://www.meyerweb.com/eric/books/
Received on Friday, 20 September 2002 10:36:39 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:16 GMT