Closed
Bug 6865
Opened 26 years ago
Closed 25 years ago
{css1} Inline box model is not considering block-level parent's line-height
Categories
(Core :: Layout, defect, P2)
Tracking
()
VERIFIED
FIXED
M11
People
(Reporter: ian, Assigned: buster)
References
()
Details
(Keywords: css1)
You fail test 2 on this EvilTest:
http://www.bath.ac.uk/%7Epy8ieh/internet/eviltests/lineheight2.html
From http://www.w3.org/TR/REC-CSS2/visudet.html#propdef-line-height :
If [line-height] is set on a block-level element whose content is
composed of inline-level elements, it specifies the minimal height of
each generated inline box.
See also:
http://lists.w3.org/Archives/Public/www-style/1999Jan/0037.html
Reporter | ||
Comment 3•26 years ago
|
||
See also bug 7097's test page:
http://www.netppl.fi/%7esairwas/tests/image-links-vspacing/
AFAICT, the images should have gaps between them on both lines.
Updated•26 years ago
|
QA Contact: petersen → chrisd
Updated•26 years ago
|
Assignee: peterl → kipp
Reporter | ||
Updated•26 years ago
|
Target Milestone: M15
Comment 4•26 years ago
|
||
As I've said before, I think that statement in CSS2 should have said line box
rather than inline box. However, I don't think there's been official word yet.
Reporter | ||
Updated•25 years ago
|
Target Milestone: M15 → M11
Reporter | ||
Comment 5•25 years ago
|
||
As mentioned in bug 5821, fixing this should be relatively easy: you just have to
insert an anonymous inline element around all inline content in a block, and
then set its line-height to 'inherit'. For example, the following:
<div>
<span> abc </span>
<span> def </span>
</div>
...would internally become
<div>
<anonymous-inline style="line-height: inherit">
<span> abc </span>
<span> def </span>
</anonymous-inline>
</div>
I believe that is all that is needed; David may be able to confirm or deny.
[Moving to M11 like 5821, as this should be fixed before 5821...]
Turns out to have been a bug in line-height inheritance which is now fixed.
Updated•25 years ago
|
Status: RESOLVED → VERIFIED
Comment 7•25 years ago
|
||
Using 9/28 Apprunner and the Evil Test provided, verified bug fixed. The
examples in 2. display identically to the two cases in 1.
Reporter | ||
Comment 8•25 years ago
|
||
Migrating from {css1} to css1 keyword. The {css1}, {css2}, {css3} and {css-moz}
radars should now be considered deprecated in favour of keywords.
Sorry for the spam...
You need to log in
before you can comment on or make changes to this bug.
Description
•