Open Bug 480869 Opened 16 years ago Updated 1 year ago

<marquee> display doesn't match IE7 at fairly large font sizes

Categories

(Core :: Layout, defect)

x86
Windows XP
defect

Tracking

()

People

(Reporter: neil, Unassigned)

Details

Attachments

(2 files, 1 obsolete file)

As you increase the test size on reftest 386470-1.html IE7's display does not change at all. However Gecko suffers from two rendering errors. The first only applies to huge font sizes, and that is that when IE7 renders a marquee on its own line (because text cannot fit on the same line) then it shrinks the line height for that one line to the height of the marquee. However the other bug that applies to fairly large font sizes is that the inner box is baseline aligned instead of top aligned, which takes effect when the baseline is larger than the inner box's size.
Attached patch Proposed patch (obsolete) — Splinter Review
Assignee: nobody → neil
Status: NEW → ASSIGNED
Attachment #364826 - Flags: superreview?(dbaron)
Attachment #364826 - Flags: review?(dbaron)
Hmm, apparently, I forgot to move those marquee reftests into the layout/reftests/marquee folder (among others I also forgot).
I need to look closely here to check whether these changes are emulating some IE bug that we don't otherwise emulate only for marquee, which isn't something we'd want to do.
So I'm having trouble understanding what's going on here. Could you explain? Also, could you point to an example of a non-editable marquee for which this changes the behavior? Also, could you add a reftest, and not change the existing test?
Attached patch Updated patchSplinter Review
Sorry for the delay. The problem seems to be that the vertical alignment of the marquee is wrong. IE7/8 display the two files identically. I don't know of a real case of a non-editable marquee. I discovered this accidentally by running a reftest at a large zoom by mistake.
Attachment #364826 - Attachment is obsolete: true
Attachment #380810 - Flags: superreview?(dbaron)
Attachment #380810 - Flags: review?(dbaron)
Attachment #364826 - Flags: superreview?(dbaron)
Attachment #364826 - Flags: review?(dbaron)
Why do you think that this particular change to the code is the right thing to do?
As I said, the error appears to be to do with the vertical alignment, and I determined that this does correct the appearance of the test. I don't know of other potential solutions or indeed alternative causes of the apparent error.
Making a single testcase appear more like it looks in IE isn't a good enough reason. What is the set of cases where we behave differently from IE, what's the general explanation for the difference, and why is this particular use of 'vertical-align' a sensible way to change our behavior (what is being aligned with what)?
Comment on attachment 380810 [details] [diff] [review] Updated patch Removing superreview request (but leaving review request) per new review rules. (I still need to look into writing additional test cases here to figure out whether this is the correct fix. And need-me-to-write-the-tests reviews are low priority.)
Attachment #380810 - Flags: superreview?(dbaron)
Comment on attachment 380810 [details] [diff] [review] Updated patch I'd like to see more testcases demonstrating that this change makes sense before accepting this patch. The initial description of the problem in the bug sounds like it could just be a statement that IE implements the CSS inline box model less correctly than we do, and not related to anything specific to marquee. Before reviewing this patch, I'd like to see testcases that demonstrate both that: * the problem you're trying to fix is really specific to marquee (and doesn't happen for, e.g., form controls or inline-block) * IE's behavior actually differs with respect to the vertical alignment. Such testcase should probably test different values of the 'vertical-align' property on both marquee and other similar elements (inline-block, form controls) in cases where: * there is or is not a tall image earlier in the line (try with both vertical-align: text-top and text-bottom on the image) * the font in the marquee is much smaller or much larger than that of the surrounding text I'm particularly suspicious of 'vertical-align: top' because it's one of the non-anchored values of 'vertical-align', and I think those (top and bottom) are rarely appropriate in default styles.
Attachment #380810 - Flags: review?(dbaron) → review-
Severity: normal → S3

The bug assignee is inactive on Bugzilla, so the assignee is being reset.

Assignee: neil → nobody
Status: ASSIGNED → NEW
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: