Closed Bug 309118 Opened 19 years ago Closed 19 years ago

Remove the vertical-align hack in html.css once bug 1156 is fixed

Categories

(Core :: Layout, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla1.9alpha1

People

(Reporter: bzbarsky, Assigned: bzbarsky)

References

Details

Attachments

(2 files)

The code will just need to go away and the attr mapping get fixed instead.
So this is not so trivial to do, since I'd basically need to create a new mapped
attributes with a different attribute mapping function to handle this in the
content node....
Note that we do need to not vertical-align because of bug 36997.  It's too bad
we can't tell apart <object align="top">2</object> (which we _would_ want to
align) from <object align="top"><embed></object> (which looks quite bad when
aligned).

Perhaps we should instead inherit the align down to kids of broken objects by
default?  That should more or less fix the cases that had issues in bug 36997, I
believe...
Attached file Testcase
Attached patch Proposed patchSplinter Review
Attachment #197204 - Flags: superreview?(dbaron)
Attachment #197204 - Flags: review?(cbiesinger)
Attachment #197204 - Flags: review?(cbiesinger) → review+
Comment on attachment 197204 [details] [diff] [review]
Proposed patch

This seems reasonable, but I wonder how compatible it is with what other
browsers do.  Worth checking, but sr=dbaron.
Attachment #197204 - Flags: superreview?(dbaron) → superreview+
Yeah, this is not compatible with what IE and Opera do.  It's compatible with
what IE does when it can handle the outer object and we can't, so I think it's
still worth landing in 1.9 and seeing what happens.
Fixed on trunk.
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9alpha
Hmm...  This caused a bit of a Tp hit (0.5% to 1%?) on btek and maybe luna.
Depends on: 433883
Product: Core → Core Graveyard
Component: Layout: Misc Code → Layout
Product: Core Graveyard → Core
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: