test case does not display HI

RESOLVED DUPLICATE of bug 122795

Status

()

Core
Layout
RESOLVED DUPLICATE of bug 122795
10 years ago
10 years ago

People

(Reporter: Ray Kiddy, Unassigned)

Tracking

Trunk
x86
Mac OS X
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(URL)

Attachments

(2 attachments)

(Reporter)

Description

10 years ago
I am on a 2.16 GHz Intel Core Duo with Mac OS X 10.4.9 with 2 GB RAM.

This test case, in both a MinefieldDebug build and with 2.0.0.4, does not display "HI" as it should.

In Opera 9.20, this displays "HI".
As far as I can tell, the test is wrong...  Certainly the first two lines we're rendering as we should, as far as I see.  I'm not sure why the 4em right padding is not affecting the third line to give even more blue, but in any case I wouldn't expect "HI" here.

Comment 2

10 years ago
Created attachment 270693 [details]
the test using   instead of padding

Boris: It seems to me the test is correct. In the attached testcase I removed the padding and added three  s after the span, and there's a very visible "HI".

The CSS 2.1 spec says (http://www.w3.org/TR/CSS21/box.html#q11):
"... the right-most generated box of the last line box in which the element appears has the right padding, right border and right margin."

It seems to me then that the 3em of padding after the span should take up exactly the same space the 3  s do in the modified test.
Created attachment 270747 [details]
Testcase that shows the problem a little more clearly

Ah, it seems I can't count to 11.  :(

This testcase clearly shows that the issue is that the padding affects line breaking in all the lines, even though it's only applied to the last line.
And this is a duplicate.
Status: NEW → RESOLVED
Last Resolved: 10 years ago
Resolution: --- → DUPLICATE
Duplicate of bug: 122795
You need to log in before you can comment on or make changes to this bug.