Break Tag Extra Space Bug

A break tag in your code when text is aligned right causes a space at the end of the line. This has the effect that the last line in a group appears too far right.

Test page Workaround is included
Reported by: Chris Hester.

Explorer Mac, Mozilla, Safari | Reported on 5 October 2006.

This site is no longer maintained. I’m sorry, but it’s just too much work for too little return. You can continue to browse old bug reports, though.




Search reports by browser:

Atom RSS

Comments

(Add your own)

1 Posted by Jason Northrup on 9 October 2006 | Permalink

Looking at the source, this acually does what I'd expect it to do in both Firefox and Safari. In fact, IE Win is the one that seems wrong to me. In the listed example, if the break was at the end of the line instead of the beginning of the following line, it would do what you are looking for. I wouldn't really classify this as a bug.

2 Posted by Chris Hester on 9 October 2006 | Permalink

I did a further test and found that a border around inline elements shows IE/Win also adds a space at the end of the line! But it doesn't move the line left, when text-align:right is used, to allow for the space. Instead the border is cut off.

Note that Opera only adds a space when there is a new line in your code between text, not after or before a break tag. I find it concerning that browsers are adding markup (a space) to the content. Perhaps this is correct behaviour?

3 Posted by Philippe on 15 November 2006 | Permalink

I doubt that is a 'correct' behaviour. And recent nightly trunk builds of Firefox doesn't show the spaces in the examples. It is there in Fx 2.0, though.

4 Posted by David Kilzer on 23 December 2006 | Permalink

Filed as WebKit Bug 11943.

http://bugs.webkit.org/show_bug.cgi?id=11943