Closed Bug 294306 Opened 19 years ago Closed 16 years ago

CSS property text-indent doesn't work if image is a floated child of a paragraph

Categories

(Core :: Layout, defect)

defect
Not set
minor

Tracking

()

RESOLVED FIXED

People

(Reporter: justin, Unassigned)

References

(Blocks 1 open bug)

Details

(Keywords: css1, testcase, Whiteboard: [CSS1-5.4.7])

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.7) Gecko/20050421 Firefox/1.0.3 (Debian package 1.0.3-2)
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.7) Gecko/20050421 Firefox/1.0.3 (Debian package 1.0.3-2)

In the code attached to this bug report, the paragraph indents properly if the
floated image is a sibling of the paragraph but not as a child. To see what the
expected result is, comment out the first <p> and enable the second <p> tag.
Disregard the paragraph text. It is only included in order to make the float
obvious and as a reference point for indentation when it is rendered.

This has been tested in the most recent Linux and Windows version of Firefox as
well as the most recent Linux version of Mozilla using the XHTML 1.0 Strict and
XHTML 1.1 DTDs.

Reproducible: Always

Steps to Reproduce:
1. Create an (X)HTML file containing the code included in the details of this
bug report.
2. Replace test.jpg with a suitable test image.
3. View the (X)HTML file with Firefox or Mozilla(It is suspected that the same
bug will crop up when viewed on a browser based on the Gecko rendering engine).
Actual Results:  
The paragraph is not indented.

Expected Results:  
The paragraph should be indented.
this is one of the cases described in bug 159403
Blocks: 159403
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: testcase
(In reply to comment #2)
> this is one of the cases described in bug 159403

Oh... Sorry. I guess my search keywords were too narrow and i didn't find that.
I really don't know if I should mark this as a duplicate or just leave it as a
dependency. I guess I'll leave that up to you guys. Thanks.
It's ok to leave this open.  bug 159403 was originally for a similar but
different issue that works now.  It's good to keep each different bug in a
separate bug report.
So the basic issue here is that our line box effectively extends under the
float, right?
*** Bug 321714 has been marked as a duplicate of this bug. ***
*** Bug 323896 has been marked as a duplicate of this bug. ***
OS: Linux → All
Hardware: PC → All
FWIW, Apple's recently released iWeb software creates HTML/CSS that has this problem. See the bug that Sam duped here for more info. Possibly more important to fix this now that there's commercial software generating problematic (for us) code.

cl
Works for me.  Maybe fixed by new text frame?
(on a mozilla-central Linux build from yesterday)
Using 1.9.1a1pre nightly from yesterday, appears to be fixed but the 5th example from Bug 159403 Attachment 146914 [details] is not rendered as expected.  Looking at the example further I'm not sure it is valid/correct as Opera doesn't indent the anonymous block there, too.  Safari and IE do indent it, however.
Whiteboard: [CSS1-5.4.7]
Given when this started working, looks like this got fixed by the patch for bug 50630.
Status: NEW → RESOLVED
Closed: 16 years ago
Depends on: 50630
Resolution: --- → FIXED
Checked in a test for this.
Flags: in-testsuite+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: