Closed Bug 386604 Opened 19 years ago Closed 19 years ago

test case does not display HI

Categories

(Core :: Layout, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 122795

People

(Reporter: ray, Unassigned)

References

()

Details

Attachments

(2 files)

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.
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.
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
Closed: 19 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: