Closed Bug 3475 Opened 26 years ago Closed 26 years ago

Default margin and padding values

Categories

(Core :: CSS Parsing and Computation, defect, P2)

All
Windows 95
defect

Tracking

()

VERIFIED INVALID

People

(Reporter: christinehoff4, Assigned: peterl-retired)

References

()

Details

Using 3/4 build in Win 95, Win 98, Win NT, Linux and Mac 85. Open http://slip/projects/marvin/bugs/blocks.html. In this document, there are no margin or padding values assigned to the P or BODY elements. Open http://slip/projects/marvin/bugs/blocks2.html. In this document, margin and padding values are set to '0' for the P and BODY elements. According to the the CSS2 specs, section 8.3 (margins) and 8.4 (padding), margin-top/right/bottom/left and padding-top/right/bottom/left have initial values of '0'. There are no defined initial values for the shorthand properties 'margin' and 'padding'. Behavior in Raptor: When no values are assigned, the BODY block border is adjacent to the P block border vertically but not horizontally. When '0' value are assigned, the block borders are adjacent at all points. I'm not sure what the expected behavior should be for 'margin' and 'padding' in the example when no values are assigned. Is the user agent expected to establish values or are the values assumed to be '0'? If the latter, then the behavior is incorrect in the 'blocks.html' document.
Summary: Default margin and padding values
Target Milestone: M4
Not an M3 blocker, setting to M4.
Status: NEW → RESOLVED
Closed: 26 years ago
Resolution: --- → INVALID
User agent defaults apply to certain elements. See ua.css
Status: RESOLVED → CLOSED
At the time the bug was filed, the ua.css indicated the default values for P as follows: p { display: block; margin-bottom: auto; margin-top: auto; } In the specs, I could only find references to 'auto' as related to margin-left and margin-right. I assumed 'auto' for margin-top and margin-bottom to be '0'. Regardless of this, the current build now specifies new defaults for P as follows: p { display: block; margin: 1em 0; } With the new defaults, I verify that the bug is NOW invalid.
Status: CLOSED → REOPENED
Status: REOPENED → RESOLVED
Closed: 26 years ago26 years ago
At the time the bug was filed, the ua.css indicated the default values for P as follows: p { display: block; margin-bottom: auto; margin-top: auto; } In the specs, I could only find references to 'auto' as related to margin-left and margin-right. I assumed 'auto' for margin-top and margin-bottom to be '0'. Regardless of this, the current build now specifies new defaults for P as follows: p { display: block; margin: 1em 0; } With the new defaults, I verify that the bug is NOW invalid.
Status: RESOLVED → VERIFIED
Closed bug in error. Reopened bug and then verified.
You need to log in before you can comment on or make changes to this bug.