[whatwg] HTML spec incorrectly suggests that <br> can have its rendering changed with CSS

Boris Zbarsky bzbarsky at MIT.EDU
Thu Jan 23 06:32:10 PST 2014


On 1/23/14 6:16 AM, Stewart Brodie wrote:
> I get different results on your test case for the bottom two tests.  In
> Chrome 33 and Opera 12.16 (Linux), there is a line break; in Firefox 26
> there isn't.

Indeed.

What Gecko does with <br> is basically to treat it like a special box 
type that has special sizing/painting/linebreak behavior.  But we do 
still allow that box to be positioned/floated, just like an <img>...

-Boris



More information about the whatwg mailing list