W3C home > Mailing lists > Public > www-style@w3.org > January 2000

Re: Generated content

From: Ian Hickson <py8ieh@bath.ac.uk>
Date: Thu, 27 Jan 2000 22:44:59 +0000 (GMT)
To: Matthew Brealey <thelawnet@yahoo.com>
cc: www-style <www-style@w3.org>
Message-ID: <Pine.GSO.4.04.10001272242130.16575-100000@mary.bath.ac.uk>
On Wed, 26 Jan 2000, Matthew Brealey wrote:
> This fails to define the rendering of 
>    P.note:before { content: "Note: "; display: block; }
>    P.note        { border: solid green }
> - does the border cover the block before.
>
> The spec does not say whether it does. Clearly the best answer is
> no, [...]

(Clearly?)

The answer is actually yes. In the case above, you get pseudo markup
equivalent to:

   <p>
      <p:before>
         <anonymous-inline>Note: </anonymous-inline>
      </p:before>
      <anonymous-block>
         <anonymous-inline>....</anonymous-inline>
      </anonymous-block>
   </p>

Thus the border surrounds the :before as well as the element's 'real'
content.

-- 
Ian Hickson                            ("`-''-/").___..--''"`-._   
http://www.bath.ac.uk/%7Epy8ieh/        `6_ 6  )   `-.  (     ).`-.__.`)
                                        (_Y_.)'  ._   )  `._ `. ``-..-' fL
Member, Mozilla Quality Assurance     _..`--'_..-_/  /--'_.' ,'
Browser Standards Compliance Team    (il).-''  (li).'  ((!.-'    
Received on Thursday, 27 January 2000 17:45:03 GMT

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