Closed
Bug 35261
Opened 25 years ago
Closed 25 years ago
Need :last-node (P and Hx tags inside a cell do not collapse the cell)
Categories
(Core :: CSS Parsing and Computation, defect, P3)
Tracking
()
VERIFIED
FIXED
M16
People
(Reporter: alec, Assigned: pierre)
References
()
Details
(Keywords: compat, css-moz)
When placing text inside a P tag, the cell has a space above and below the tag.
This is not present in other browers.
What placing text inside a header tag (H1,H2,etc), the cell has a space above
the text that is not present in other browsers.
Comment 1•25 years ago
|
||
confirming this behavior is present in M14 on win98 (build ID 2000022820).
whether or not its correct remains to be seen ;-)
NN 4.x and IE 5 on win32 both have the "intended" behavior from
the original report (no space above the h1 text, etc.)
Comment 2•25 years ago
|
||
this may be related to (or a dup of) bug 15316.
alec@intellipro.com, can you have a glance at that bug, and
decide if this is close enough to close out?
Reporter | ||
Comment 3•25 years ago
|
||
I think bug 15316 is a seperate issue since that's outside a table. Mozilla
and the other browsers both recognize that space needs to be added following
H1, but Mozilla is just a few pixels short.
In this bug however, the fact that the H1 and P tags are in a cell makes a big
difference since the other browsers leave no extra space while Mozilla adds a
whole line. For whatever reasons, the other browsers have set the standard
that the cell should be collapsed around the P tag even though it's a block
element and Mozilla doesn't do this.
Comment 4•25 years ago
|
||
fair enough.
marking as NEW.
if someone can confirm that the issues in 15316 do in fact apply here,
this can probably be marked duplicate.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Comment 5•25 years ago
|
||
Should this be changed back for quirks mode? (This was caused by making table
cells a margin root, I assume. See bug 27043.)
I don't see any space above using the latest build. There was a problem there,
but that was fixed by adding a rule to htnl.css so that the first child of the
td doesn't have a top margin
There is a difference in how much bottom margin is displayed and so reassigning
to buster to look at that issue
Assignee: troy → buster
Comment 7•25 years ago
|
||
Pierre, it looks like we are going to need a :last-node equivalent of the
existing :first-node extension... Then fixing this bug is as simple as adding
td > *:last-node { margin-bottom: 0; }
...to html.css. How likely is it that you could add that selector?
Assignee | ||
Comment 8•25 years ago
|
||
Agreed, we can add :last-node. Reassigned to myself.
Assignee: buster → pierre
Component: Layout → Style System
Summary: P and Hx tags inside a cell do not collapse the cell → Need :last-node (P and Hx tags inside a cell do not collapse the cell)
Target Milestone: --- → M16
thanks, pierre. please reassign back to me once :last-node is added if there is
more work to be done here in the block code
Assignee | ||
Comment 10•25 years ago
|
||
Fixed (added :last-node and updated html.css per Ian's suggestion)
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•