Closed
Bug 130116
Opened 23 years ago
Closed 23 years ago
text-indent should affect shrink wrapping
Categories
(Core :: Layout, defect, P4)
Core
Layout
Tracking
()
RESOLVED
FIXED
mozilla1.1alpha
People
(Reporter: ezh, Assigned: dbaron)
References
Details
(Whiteboard: [Hixie-P4])
Attachments
(6 files, 2 obsolete files)
353 bytes,
text/html
|
Details | |
7.41 KB,
image/png
|
Details | |
2.87 KB,
image/png
|
Details | |
397 bytes,
text/html
|
Details | |
3.95 KB,
patch
|
attinasi
:
review+
waterson
:
superreview+
|
Details | Diff | Splinter Review |
216 bytes,
text/html
|
Details |
<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
Reporter | ||
Comment 1•23 years ago
|
||
![]() |
||
Comment 2•23 years ago
|
||
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).
Reporter | ||
Comment 3•23 years ago
|
||
In IE the lines are aligned to the right of table, but in moz they are more
centered.
![]() |
||
Comment 4•23 years ago
|
||
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
Comment 5•23 years ago
|
||
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]
Updated•23 years ago
|
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...
Assignee | ||
Comment 10•23 years ago
|
||
The difference between the two screenshots is the position of the right edge of
the table.
Assignee | ||
Comment 11•23 years ago
|
||
Comment on attachment 83160 [details]
Multiple-line test file
This testcase is unrelated to the bug.
Attachment #83160 -
Attachment is obsolete: true
Comment 12•23 years ago
|
||
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...
Comment 13•23 years ago
|
||
Assignee | ||
Comment 14•23 years ago
|
||
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).
Assignee | ||
Comment 15•23 years ago
|
||
Taking bug.
Assignee: attinasi → dbaron
Target Milestone: Future → mozilla1.1alpha
Assignee | ||
Comment 16•23 years ago
|
||
Slightly cleaner fix. I did check, and this does also fix bug 45694.
Attachment #83166 -
Attachment is obsolete: true
Assignee | ||
Updated•23 years ago
|
Status: NEW → ASSIGNED
Comment 17•23 years ago
|
||
Comment on attachment 83168 [details] [diff] [review]
slightly cleaner fix
sr=waterson. very nice.
Attachment #83168 -
Flags: superreview+
Assignee | ||
Comment 18•23 years ago
|
||
As waterson points out, bug 140682 and bug 91468 seem to be the same and/or very
similar.
Comment 19•23 years ago
|
||
Comment on attachment 83168 [details] [diff] [review]
slightly cleaner fix
r=attinasi
Attachment #83168 -
Flags: review+
Comment 20•23 years ago
|
||
*** Bug 97753 has been marked as a duplicate of this bug. ***
Comment 21•23 years ago
|
||
Assignee | ||
Comment 22•23 years ago
|
||
Fix checked in 2002-05-14 05:55 PDT.
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 23•23 years ago
|
||
*** Bug 91468 has been marked as a duplicate of this bug. ***
Comment 24•23 years ago
|
||
Does the fix checked in to m1.0RC3 too? Still see the problem in RC3.
Reopen?
![]() |
||
Comment 25•23 years ago
|
||
> 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.
You need to log in
before you can comment on or make changes to this bug.
Description
•