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