|| Today's CSS quirklets
||Mar. 31st, 2004 11:03 am|
<span style="display: hidden"><br /></span> in IE-Mac will cause a line break.|
<p style="position: relative"> elements don't correctly act as absolute positioning parents in Gecko-Mac.
Hmm. REC-CSS1 states that that behaviour of BR elements cannot be styled and that browsers must implement their behaviour as a special case. (Once replacement and inserted content is fully supported there is a chance that BR behaviour can be implemented as a pure style using an inserted pre-formatted linefeed character.)
IE gets several other cascade/inheritance bits wrong - for example a width:100% TABLE within a width:auto parent gets 100% of the width of the page, not of the computed width of the parent; to get 100% of the parent you need to insert an additional DIV element between the two with width:100% set on that too. That it fails to push visibility down to something it is already having to treat specially doesn't surprise me. (Does inserting an extra span or div, possibly with its own display style, around the BR make any difference? You could also try, instead of the BR, an emty div, a div containing only , a pre block containing a single newline.)