Closed Bug 597513 Opened 15 years ago Closed 15 years ago

Inline auto-sized <svg> with margin-left is too wide (sticks out of container's border-box)

Categories

(Core :: Layout, defect)

defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: dholbert, Unassigned)

Details

Attachments

(1 file)

See attached testcase -- with margin-left applied, the <svg> background-box sticks out of its container's border-box. If I replace the SVG with a <div> (as shown in the lower half of the textcase), it doesn't stick out.
Attached file testcase 1
d'oh, just realized this is INVALID. The difference is that the div has default width = "auto", whereas the SVG has default width = "100%". If I add style="width:100%" to the div, it matches the SVG. Sorry for the bug spam. :)
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: