Closed Bug 1278 Opened 26 years ago Closed 26 years ago

box properties on inline elements should not increase line height

Categories

(Core :: Layout, defect, P2)

x86
Other
defect

Tracking

()

VERIFIED FIXED

People

(Reporter: dbaron, Assigned: buster)

References

()

Details

padding, border, and margin on non-replaced inline elements should not increase line height. They should be drawn in, but they should only change the spacing on the sides of the elements. See the spec: http://www.w3.org/TR/REC-CSS1#the-height-of-lines http://www.w3.org/TR/REC-CSS2/visudet.html#q22 New tests in the CSS1 test suite on this topic are forthcoming. Stay tuned.
Setting all current Open/Normal to M4.
Status: ASSIGNED → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
The box properties margin, padding and border no longer increase the line-height for inline non-replaced elements.
Status: RESOLVED → REOPENED
You're still not doing it right for the top of the first line and the bottom of the last. The blue should actually go outside the body in the above URL. The problem also shows up in the above URL and in the gray DIVs in http://www.w3.org/Style/CSS/Test/current/sec548.htm where you don't have any spacing from the line-height at the edges of the DIVs. I'm verifying bug 585 (from which the above came from) and reopening this one.
Resolution: FIXED → ---
Status: REOPENED → ASSIGNED
You're right - the inline.html is fine. However, section 548 is not, I think. The problem is shown more clearly on: http://www.fas.harvard.edu/~dbaron/csstest/linebox4
per leger, assigning QA contacts to all open bugs without QA contacts according to list at http://bugzilla.mozilla.org/describecomponents.cgi?product=Browser
QA Contact: 4144 → 4110
Status: ASSIGNED → RESOLVED
Closed: 26 years ago26 years ago
Resolution: --- → FIXED
Fixed. Every test I could find now passes, include all the tests mentioned in this page and in bug #1990.
Status: RESOLVED → VERIFIED
After brief discussion David and I agree that this bug is fixed. Verified with 1999-03-23 Win32 build.
I agree that sec548 is fine. The linebox4 issues are now part of bug 4234. Leaving bug verified.
You need to log in before you can comment on or make changes to this bug.