Closed
Bug 438867
Opened 17 years ago
Closed 17 years ago
SVG not rendered due to <hr style="clear: both" />
Categories
(Core :: SVG, defect)
Core
SVG
Tracking
()
VERIFIED
FIXED
People
(Reporter: christian, Assigned: longsonr)
References
()
Details
(Keywords: verified1.9.0.2)
Attachments
(2 files, 1 obsolete file)
2.61 KB,
patch
|
roc
:
review+
roc
:
superreview+
samuel.sidler+old
:
approval1.9.0.2+
|
Details | Diff | Splinter Review |
2.21 KB,
patch
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9) Gecko/2008061004 Firefox/3.0
Build Identifier: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9) Gecko/2008061004 Firefox/3.0
This page contains SVG and SVG not rendered due to <hr style="clear: both" />. The style on the hr seems to break the SVG rendering. This page works fine in FF2 and Safari. I can reproduce the problem in FF3rc3 on mac and windows XP.
The svg is actually in the DOM (according to Firebug), it is just not rendered.
Reproducible: Always
Steps to Reproduce:
1. create some SVG with javascript
2. add <hr style="clear: both" /> to that page
3. load page in FF3rc3
Actual Results:
only see the <hr>
Expected Results:
see <hr> and the svg
SVG example code, to reproduce problem:
var SVG_NS = "http://www.w3.org/2000/svg";
var XLINK_NS = "http://www.w3.org/1999/xlink";
var svgNode = document.createElementNS(SVG_NS, 'svg');
svgNode.style.position = 'absolute';
svgNode.style.left = '10px';
svgNode.style.top = '10px';
svgNode.style.zIndex = '2000000';
document.body.appendChild(svgNode);
var line = document.createElementNS(SVG_NS, "line");
line.setAttribute('x1', '0');
line.setAttribute('y1', '0');
line.setAttribute('x2', '100');
line.setAttribute('y2', '100');
line.setAttribute('stroke', 'black');
svgNode.appendChild(line);
only required body content:
<hr style="clear: both" />
Comment 1•17 years ago
|
||
Hey, I also found that
<br clear=all>
in the body breaks this example.
Reporter | ||
Comment 2•17 years ago
|
||
Another example, slightly different: http://pekeler.org/test/svg2.html
Assignee | ||
Comment 3•17 years ago
|
||
What happens if you use an xhtml rather than a html document?
Reporter | ||
Comment 4•17 years ago
|
||
Same problem. See http://pekeler.org/test/svg.xhtml
Comment 5•17 years ago
|
||
Regression range is http://bonsai.mozilla.org/cvsquery.cgi?module=PhoenixTinderbox&date=explicit&mindate=1188491520&maxdate=1188493379
but only for http://pekeler.org/test/svg.html and http://pekeler.org/test/svg.xhtml
http://pekeler.org/test/svg2.html works also later.
Assignee | ||
Updated•17 years ago
|
Component: General → SVG
Product: Firefox → Core
QA Contact: general → general
Assignee | ||
Comment 6•17 years ago
|
||
Assignee: nobody → longsonr
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Attachment #324930 -
Flags: superreview?(roc)
Attachment #324930 -
Flags: review?(roc)
Assignee | ||
Comment 7•17 years ago
|
||
Thanks for the regression range Ria, it really pinpointed what to look at.
Assignee | ||
Comment 8•17 years ago
|
||
Attachment #324930 -
Attachment is obsolete: true
Attachment #324930 -
Flags: superreview?(roc)
Attachment #324930 -
Flags: review?(roc)
Comment on attachment 324931 [details] [diff] [review]
corrected patch
can you make a reftest?
Attachment #324931 -
Flags: superreview+
Attachment #324931 -
Flags: review+
Assignee | ||
Comment 10•17 years ago
|
||
Assignee | ||
Comment 11•17 years ago
|
||
checked in.
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Flags: in-testsuite+
Flags: blocking1.9.1?
Resolution: --- → FIXED
Updated•17 years ago
|
Flags: wanted1.9.0.x?
Assignee | ||
Updated•17 years ago
|
Flags: blocking1.9.1?
Comment 13•17 years ago
|
||
Robert, does this patch apply to the 1.9 branch? I think we want this...
Flags: wanted1.9.0.x? → wanted1.9.0.x+
Assignee | ||
Comment 14•17 years ago
|
||
I'm pretty sure it would apply, yes.
Assignee | ||
Updated•17 years ago
|
Attachment #324931 -
Flags: approval1.9.0.2?
Comment 15•17 years ago
|
||
Comment on attachment 324931 [details] [diff] [review]
corrected patch
Approved for 1.9.0.2. Please land in CVS. a=ss
Be sure to land the reftest as well.
Attachment #324931 -
Flags: approval1.9.0.2? → approval1.9.0.2+
Assignee | ||
Updated•16 years ago
|
Keywords: fixed1.9.0.2
Comment 16•16 years ago
|
||
verified fixed on the 1.9.0 branch using Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.0.2pre) Gecko/2008082004 GranParadiso/3.0.2pre. I verified using the test case in the URL.
verified fixed on the trunk using Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1a2pre) Gecko/20080820020636 Minefield/3.1a2pre.
Status: RESOLVED → VERIFIED
Keywords: fixed1.9.0.2 → verified1.9.0.2
You need to log in
before you can comment on or make changes to this bug.
Description
•