Closed Bug 130116 Opened 23 years ago Closed 23 years ago

text-indent should affect shrink wrapping

Categories

(Core :: Layout, defect, P4)

defect

Tracking

()

RESOLVED FIXED
mozilla1.1alpha

People

(Reporter: ezh, Assigned: dbaron)

References

Details

(Whiteboard: [Hixie-P4])

Attachments

(6 files, 2 obsolete files)

<table border=1><tr><td> <p style="margin-left: 30px; text-indent: -10px;">Line1 <p style="margin-left: 10px; text-indent: 10px;">Line2 </td></tr></table> Look at the attach. IE shows it different. Who's wrong? moz 2002030703
Attached file the test file
Could you attach screenshots of what you see with IE and Mozilla? I see what looks like correct rendering in Mozilla here... (the two lines are exactly lined up).
In IE the lines are aligned to the right of table, but in moz they are more centered.
Ah, OK. That would be because the text-indent does not, and should not, imo, affect the sizing of the <p> it's applied to. Ian, is that correct?
Keywords: qawanted
QA Contact: petersen → ian
That depends on whether the P is being shrink wrapped or not. I'd say this is valid -- in the following examples, the box is being shrinkwrapped, like in the table case here. The notch in the bottom border, and the dotted area, represent the margin (or padding) that the text (or box) has. In the first case, no text-indent: +------------------------+ |::::::::TEXTTEXTTEXTTEXT| +-------'----------------+ Next case, positive text-indent: +----------------------------+ |:::::::: TEXTTEXTTEXTTEXT| +-------'--------------------+ Final case, negative text-indent: +--------------------+ |::::TEXTTEXTTEXTTEXT| +-------'------------+ Seems to me like IE is doing the right thing, and we are not. No?
OS: Windows 2000 → All
Hardware: PC → All
Summary: moz do not correctly shows → text-indent should affect shrink wrapping
Whiteboard: [Hixie-P4]
Priority: -- → P4
Target Milestone: --- → Future
Reporter: is this still happening with Moz 1.0 RC1 or a Current Nightly Build? As far as I can tell, IE6 and Moz 1.0RC1 handle this case in exactly the same way now (attaching screenshots). If that is indeed the case, I suggest that someone who has the power to do so please change status to RESOLVED. Part of the reason I was at first confused is that the FIRST LINE of BOTH PARAGRAPHS should have the same TOTAL margin: PARAGRAPH 1, 30px(left-margin) -10px (indent) = 20 px PARAGRAPH 2, 10px(left-margin) +10px (indent) = 20 px However, if there were susequent lines of text in these paragraphs they would have different margins, since every line after the first is not indented- but like I said, there are no lines after the first- if there were, they would have margins of 30 and 10px respectively. Am attaching html file to show what happens to subsequent lines of text...
Attached file Multiple-line test file (obsolete) —
The difference between the two screenshots is the position of the right edge of the table.
Comment on attachment 83160 [details] Multiple-line test file This testcase is unrelated to the bug.
Attachment #83160 - Attachment is obsolete: true
Ah, OK, I see what you mean now- if I make this other testcase (just pretend that the other never existed, OK?), it shows how Moz is handling the shrinkwrapping in the two cases differently: Have put both paragraphs within their own tables to show the diffence- IE6 handles both lines the same- Moz adds extra space to Line1 but appears to handle Line2 correctly...
Attached patch proposed fix (obsolete) — Splinter Review
This fixes the bug. It should also fix bug 45694, although I haven't tested that yet. It's the least ugly solution I could think of at the moment (although it's not really that bad).
Taking bug.
Assignee: attinasi → dbaron
Target Milestone: Future → mozilla1.1alpha
Slightly cleaner fix. I did check, and this does also fix bug 45694.
Attachment #83166 - Attachment is obsolete: true
Status: NEW → ASSIGNED
Blocks: 140682
Comment on attachment 83168 [details] [diff] [review] slightly cleaner fix sr=waterson. very nice.
Attachment #83168 - Flags: superreview+
As waterson points out, bug 140682 and bug 91468 seem to be the same and/or very similar.
Comment on attachment 83168 [details] [diff] [review] slightly cleaner fix r=attinasi
Attachment #83168 - Flags: review+
*** Bug 97753 has been marked as a duplicate of this bug. ***
Fix checked in 2002-05-14 05:55 PDT.
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
*** Bug 91468 has been marked as a duplicate of this bug. ***
Does the fix checked in to m1.0RC3 too? Still see the problem in RC3. Reopen?
> Does the fix checked in to m1.0RC3 too? No (note the patch has no approval). This is not going to be in 1.0. It will be in 1.1.
Keywords: qawanted
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: