Closed
Bug 280923
Opened 20 years ago
Closed 17 years ago
svg element does not apply width and height settings from CSS
Categories
(Core :: SVG, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: harald.albrecht, Unassigned)
References
Details
(Whiteboard: [reflow-refactor])
Attachments
(2 files)
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8b) Gecko/20050201 Firefox/1.0+
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8b) Gecko/20050201 Firefox/1.0+
<svg> elements do not apply their width and/or height settings from CSS.
Instead, only the values directly set through the width= and height= attributes
of <svg> elements are used.
Reproducible: Always
Steps to Reproduce:
1. Use attached testcase file.
Actual Results:
The black circle is shown completely. However, if the width and height CSS
settings would be properly honored, then only the topleft quarter of the black
circle should be shown.
Expected Results:
The black circle should be clipped, so that only its topleft quarter should be
visible.
Reporter | ||
Comment 1•20 years ago
|
||
Comment 2•20 years ago
|
||
Updated•20 years ago
|
Attachment #173262 -
Attachment description: simpler patch → simpler testcase
Updated•20 years ago
|
Status: UNCONFIRMED → NEW
Ever confirmed: true
Comment 3•20 years ago
|
||
I meant simpler *testcase* of course. As Harald says, it works fine if we use
the attributes.
Comment 4•20 years ago
|
||
So isn't this just a matter of mapping width/height into CSS on outer SVG
elements and then actually using the reflow state data when you reflow?
Comment 5•20 years ago
|
||
Well first I was wondering whether we should be doing this.
Comment 6•19 years ago
|
||
See also bug #288276
Comment 7•19 years ago
|
||
Boris: so given http://lists.w3.org/Archives/Public/www-svg/2006Feb/0051 I guess this isn't quite as you describe in comment 4?
Comment 8•19 years ago
|
||
Yeah, given that these are intrinsic sizes not specified sizes...
Updated•18 years ago
|
Whiteboard: [reflow-refactor]
Comment 9•18 years ago
|
||
The SetCoordCtxRect call in nsSVGOuterSVGFrame::Reflow is just wrong. We should only be doing that if there's no viewBox attribute.
Comment 10•17 years ago
|
||
Moving deps to bug 294086.
Comment 11•17 years ago
|
||
This bug was fixed by the fix for bug 294086. A lot of the reftests checked in for that bug cover this bug too, so marking in-testsuite+.
Status: NEW → RESOLVED
Closed: 17 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•