Closed Bug 618675 Opened 9 years ago Closed 6 years ago

The td, div or span containers don't respect the width values of inline SVG

Categories

(Core :: SVG, defect, major)

x86
Windows 7
defect
Not set
major

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: waelwrw, Unassigned)

References

()

Details

(Keywords: testcase)

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.12) Gecko/20101026 Firefox/3.6.12
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.12) Gecko/20101026 Firefox/3.6.12

The width of the container (td, div or span) of inline SVG elements doesn't reflect the width attribute of the SVG as follows:

<svg version="1.1" width="265.58749" height="437.92499" viewBox="0 0 265.58749 437.92499" style="vertical-align: -172.964pt;" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">...



Reproducible: Always

Actual Results:  
The computed td width="154.067px"
The actual SVG width="265.58749px"

Expected Results:  
The td width should be expanded to fit the SVG width + padding.

The td width less than the SVG width.
Severity: normal → major
Summary: The td, div or span containers doesn't respect the width values of inline SVG → The td, div or span containers don't respect the width values of inline SVG
See Also: → 401775
Depends on: 401775
See Also: 401775
Attachment #497139 - Attachment mime type: text/html → application/xhtml+xml
Component: General → Layout
Product: Firefox → Core
QA Contact: general → layout
Version: unspecified → Trunk
Severity: major → critical
Component: Layout → Extension Compatibility
Product: Core → Firefox
Version: Trunk → 3.6 Branch
Severity: critical → major
Component: Extension Compatibility → Layout
Product: Firefox → Core
Version: 3.6 Branch → Trunk
Is the SVG frame not reporting a correct min-width and pref-width here?
Component: Layout → SVG
QA Contact: layout → general
In particular, looks like nsSVGOuterSVGFrame::GetMinWidth always returns 0; that seems wrong.  Shouldn't it return the same thing as GetPrefWidth, like nsImageFrame does?
Status: UNCONFIRMED → NEW
Ever confirmed: true
Seems OK now.
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.