Closed Bug 640917 Opened 14 years ago Closed 13 years ago

Make SVG foreignObject a CSS fixed position containing block

Categories

(Core :: SVG, defect)

defect
Not set
major

Tracking

()

RESOLVED FIXED
mozilla13

People

(Reporter: lfournie, Assigned: bzbarsky)

References

Details

(Keywords: testcase)

Attachments

(3 files)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.9.2.15) Gecko/20110303 Firefox/3.6.15 ( .NET CLR 3.5.30729) Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.9.2.15) Gecko/20110303 Firefox/3.6.15 ( .NET CLR 3.5.30729) An xhtml DIV inside a foreignobject of a SVG document does not render the content with a CSS property 'position:fixed'. FF does not return ant error and the DOM inspector shows the right block position but content still empty ! Works fine with Webkit (chromium 10.0.629.0 (70502) The bug exists also on Linux FF4.0 beta13 Reproducible: Always Steps to Reproduce: Run this SVG code: <svg xmlns="http://www.w3.org/2000/svg"> <style type="text/css">div { position:fixed; background: #aaa; } </style> <foreignObject width="100px" height="100px"> <div xmlns="http://www.w3.org/1999/xhtml">TEXT</div> </foreignObject> </svg> Actual Results: empty page Expected Results: 'TEXT' string rendered I have given a minimal example to reproduce the bug but my initial request was to embbed a full HTML5 Ace editor inside an SVG code. (Ace request a fixed div)
Attached image compare webkit/gecko
Can you add the testcase as an attachment rather than pasting it as a comment please?
Attached image bug_pos.svg
Mozilla/5.0 (Windows NT 5.1; rv:2.0) Gecko/20100101 Firefox/4.0 Able to reproduce in Firefox 4rc1. Works fine for me in Firefox 3.6.15.
Component: General → SVG
Product: Firefox → Core
QA Contact: general → general
(In reply to comment #4) > Mozilla/5.0 (Windows NT 5.1; rv:2.0) Gecko/20100101 Firefox/4.0 > > Able to reproduce in Firefox 4rc1. Works fine for me in Firefox 3.6.15. The bug is on both: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.9.2.15) Gecko/20110303 Firefox/3.6.15 ( .NET CLR 3.5.30729) and nightly build: 4.0b13pre (2011-03-10)
Confirmed agsinst Trunk & Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.2.16pre) Gecko/20110308 Namoroka/3.6.16pre ID:20110308033207
Keywords: testcase
Version: unspecified → Trunk
roc, the frame is there but we seem to not end up painting the div... any idea why?
Status: UNCONFIRMED → NEW
Ever confirmed: true
Depends on: 728111
Attachment #599351 - Flags: review?(jwatt) → review+
Assignee: nobody → bzbarsky
OS: Windows XP → All
Hardware: x86 → All
Summary: svg foreignobject css position fixed no display → Make SVG foreignObject a CSS fixed position containing block
Flags: in-testsuite+
Target Milestone: --- → mozilla13
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Depends on: 984312
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: