Closed Bug 376948 Opened 17 years ago Closed 17 years ago

Useless margin-top rules in quirk.css for form?

Categories

(Core :: Layout, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: martijn.martijn, Assigned: martijn.martijn)

References

()

Details

Attachments

(11 files)

See url, since form is already set to to margin-top: 0 at:
http://lxr.mozilla.org/seamonkey/source/layout/style/quirk.css#288
the form selector part there seems rather useless. So I think those can be removed.

IE seems to have margin-top: 1em for forms, so maybe we want to follow that instead.
Results for IE:
             margin-top?  margin-bottom?
testcase1 -  yes          yes
testcase2 -  no           yes
testcase3 -  yes          -
testcase4 -  no           yes
testcase5 -  yes          yes
Same result in IE7 for these testcases.
Attached patch patchSplinter Review
This patch makes Mozilla behave differently in these cases:
-testcase2a, empty form is first-node
-testcase4a, empty form is first-node in td
But that makes Mozilla actually more compatible with IE.
Attachment #261080 - Flags: review?(dbaron)
Comment on attachment 261080 [details] [diff] [review]
patch

r+sr=dbaron.  Sorry for taking so long to get to this.
Attachment #261080 - Flags: superreview+
Attachment #261080 - Flags: review?(dbaron)
Attachment #261080 - Flags: review+
Attachment #261080 - Flags: approval1.9?
Comment on attachment 261080 [details] [diff] [review]
patch

a1.9=dbaron
Attachment #261080 - Flags: approval1.9? → approval1.9+
Assignee: nobody → martijn.martijn
Checking in quirk.css;
/cvsroot/mozilla/layout/style/quirk.css,v  <--  quirk.css
new revision: 1.57; previous revision: 1.56
done

Checked into trunk.
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: