Closed Bug 229674 Opened 21 years ago Closed 20 years ago

{inc}[margin-c]margin-bottom applied twice when using :target selector and generated content

Categories

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

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: arnoudb, Unassigned)

References

Details

(Keywords: testcase)

Attachments

(1 file)

See the attached testcase (coming up). Actual behaviour: When a <h1> tag is targetted with a :target rule that also generates content (before or after it), the margin-bottom of that <h1> is applied a second time, so everything moves down. Expected behaviour: Margin-bottom stays as-is. Padding-bottom and margin-top are unaffected by this bug.
Assignee: dbaron → nobody
Component: Style System (CSS) → Layout
QA Contact: ian → core.layout
Summary: margin-bottom applied twice when using :target selector and generated content → {inc}margin-bottom applied twice when using :target selector and generated content
Resizing the window makes the bug go away. Another incremental reflow margin-collapse bug...
Component: Layout → Layout: Block and Inline
QA Contact: core.layout → core.layout.block-and-inline
Summary: {inc}margin-bottom applied twice when using :target selector and generated content → {inc}[margin-c]margin-bottom applied twice when using :target selector and generated content
Fixed by checkin for bug 257612
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Depends on: 257612
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: