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:
<http://dev.l-c-n.com/_temp/br-block.html>

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
---
Philippe Wittenbergh
http://l-c-n.com/
Received on Thursday, 3 July 2008 05:14:57 GMT

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