Closed Bug 63298 Opened 25 years ago Closed 25 years ago

Emulating frames with CSS

Categories

(Core :: Layout, defect)

x86
Other
defect
Not set
normal

Tracking

()

VERIFIED INVALID

People

(Reporter: tapio.markula, Assigned: clayton)

Details

I tested, if Mozilla could emulate nested framesets with HTML and BODY elements with following CSS: html{height:600px;overflow:auto;} body.mielipide {max-width:600px;height:300px;overflow:auto;margin:auto} In my mind Mozilla should put equal margin above and below the BODY, but it doesn't work. margin:auto works in horizontal direction, but NOT in vertical direction. I addmit, that Mozilla is qood, but the IFRAME emulation is not perfect in the build, which I have tested. This implementation is in fact unnecessary.
From the spec section "10.6.3 Block-level, non-replaced elements in normal flow, and floating, non-replaced elements": "If 'top', 'bottom', 'margin-top', or 'margin-bottom' are 'auto', their computed value is 0." http://www.w3.org/TR/REC-CSS2/visudet.html#q17 Hence, the computed value of the margin-top property is 0 in the described case.
Status: UNCONFIRMED → RESOLVED
Closed: 25 years ago
Resolution: --- → INVALID
Reporter: could you please read the Bug Writing Guidelines at: http://www.mozilla.org/quality/bug-writing-guidelines.html ...to see the kinds of information we need in a bug report. Also, please use the Bugzilla Helper when filing future bug reports. The Helper can be found at: http://www.mozilla.org/quality/help/bug-form.html Thanks for your help in testing Mozilla.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.