Closed Bug 32436 Opened 24 years ago Closed 24 years ago

"vertical-align:baseline" in table cells aligns on top

Categories

(Core :: Layout: Tables, defect, P3)

x86
Windows NT
defect

Tracking

()

VERIFIED DUPLICATE of bug 10207

People

(Reporter: ssch, Assigned: karnaze)

References

Details

Attachments

(1 file)

From Bugzilla Helper:
User-Agent: Mozilla/4.6 [de]C-CCK-MCD {globalhome}  (WinNT; I)
BuildID:    2000012520



Reproducible: Always
Steps to Reproduce:
<html>
<head>
<style type="text/css">
    div.big {font-size:2em}
    div.bigm {font-size:2em; margin-bottom:2em}    
    div.smallm {margin-bottom:2em}
    td.tdbaseline {vertical-align:baseline}
</style>
</head>
<body>

<table>
    <tr>
        <td class="tdbaseline">
            <div class="big">
            2 baseline
            </div>
        </td>
        <td class="tdbaseline">
            <div class="small">
            2 baseline
            </div>
        </td>
    </tr>
    <tr>
        <td class="tdbaseline">
            <div class="bigm">
            2 baseline
            </div>
        </td>
        <td class="tdbaseline">
            <div class="smallm">
            2 baseline
            </div>
        </td>
    </tr>
    <tr>
        <td class="tdbaseline">
            <div class="big">
            2 baseline
            </div>
        </td>
        <td class="tdbaseline">
            <div class="small">
            2 baseline
            </div>
        </td>
    </tr>
</table>

</body>
</html>
The margin-bottom property is not ignored: if you change the value for 'bigm', 
you can see that the row height changes too. The problem is with "vertical-
align:baseline". Instead of aligning the baselines, Moz aligns the top of the 
cells content. 

I'm going to attach an improved testcase based on the code above.
FYI, it works in WinIE5 and is ignored in MacIE5.

Updated the summary line.
Reassigned to HTMLTables.
Assignee: pierre → karnaze
Component: Style System → HTMLTables
Summary: margin-bottom property ignored for block-level elements in table cells → "vertical-align:baseline" in table cells aligns on top
Attached file testcase
*** Bug 32435 has been marked as a duplicate of this bug. ***
... and this is a duplicate of bug #10207. marking dupl.

*** This bug has been marked as a duplicate of 10207 ***
Status: UNCONFIRMED → RESOLVED
Closed: 24 years ago
Resolution: --- → DUPLICATE
Verified dup of #10207
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: