W3C home > Mailing lists > Public > www-style@w3.org > July 2008

Re: <br> and generated-content

From: Ph. Wittenbergh <jk7r-obt@asahi-net.or.jp>
Date: Thu, 3 Jul 2008 14:14:19 +0900
Message-Id: <E1AA81CE-7EA7-477C-85F9-A2EE9ED029C7@asahi-net.or.jp>
To: CSS <www-style@w3.org>

  Boris Zbarsky wrote:

>> What is it now? That would be a good starting place. What happens  
>> in the various UAs if you make it display:block and give it some  
>> height and width and float?
> That's the question I was asking, yes.

test file:

Given the following stylesheet
.x br {display:block; height:0; background:yellow;}

[class] br::before, [class] br::after {content:''; content:none;} /*  
opera */
#y br {float:left;}

#z br {height:1em !important; width:1em !important; display:block;  
float:left; background:yellow;}


* Gecko (1.9, 1.9.1a1pre): The br is floated, but width and height  
have no effect (compute to '0').

* Opera 9.5, when removing the generated content, the br is floated,  
width/height applied

* WebKit latest nightly, Safari 3.1:  those rules have apparently no  
effect at all.

Tested OS X 10.5.4 and Ubuntu Linux.  My virtual machine with Windows  
Xp is apparently on holiday.

Philippe Wittenbergh
Received on Thursday, 3 July 2008 05:14:57 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:38 UTC