Closed Bug 372632 Opened 18 years ago Closed 17 years ago

Initially empty H3 or P does not gain margin when text is added [SELECTORS-DYNAMIC] (:-moz-only-whitespace)

Categories

(Core :: Layout: Block and Inline, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla1.9beta4

People

(Reporter: jruderman, Assigned: dbaron)

References

Details

(Keywords: testcase, Whiteboard: [margin-c])

Attachments

(2 files)

If I take an initially empty H3 and add text to it, it doesn't gain a margin-bottom like it would have had if it had text initially.  I will attach a reftest pair demonstrating the bug.

Quirks mode only.
Attached file 372632-1.html
Attached file 372632-1-ref.html
More like the margin is not uncollapsed for some reason...
Component: Layout → Layout: Block and Inline
QA Contact: layout → layout.block-and-inline
Whiteboard: [margin-c]
Blocks: refdyn
Seems more likely to be a problem with dynamic recalculation of the selectors in quirks.css.  There's a bug on :empty; this would be :-moz-only-whitespace.  (And those quirks are really better represented as some C++ code anyway; there's a bug on that somewhere too.)
I still see this bug on trunk.
Summary: Initially empty H3 or P does not gain margin when text is added → Initially empty H3 or P does not gain margin when text is added [SELECTORS-DYNAMIC] (:-moz-only-whitespace)
Would have been fixed by either bug 33784 or bug 98997.  Bug 98997 got there first.
Status: NEW → RESOLVED
Closed: 17 years ago
Depends on: 33784, 98997
Resolution: --- → FIXED
Flags: in-testsuite?
Assignee: nobody → dbaron
OS: Mac OS X → All
Hardware: PC → All
Target Milestone: --- → mozilla1.9beta4
Reftest checked in.
Flags: in-testsuite? → in-testsuite+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: