Make SVG foreignObject a CSS fixed position containing block

RESOLVED FIXED in mozilla13

Status

()

Core
SVG
--
major
RESOLVED FIXED
6 years ago
2 years ago

People

(Reporter: Laurent Fournier, Assigned: bz)

Tracking

(Depends on: 1 bug, {testcase})

Trunk
mozilla13
testcase
Points:
---
Dependency tree / graph
Bug Flags:
in-testsuite +

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(3 attachments)

(Reporter)

Description

6 years ago
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)
(Reporter)

Comment 1

6 years ago
Created attachment 518681 [details]
compare webkit/gecko

Comment 2

6 years ago
Can you add the testcase as an attachment rather than pasting it as a comment please?
(Reporter)

Comment 3

6 years ago
Created attachment 518684 [details]
bug_pos.svg

Comment 4

6 years ago
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.

Updated

6 years ago
Component: General → SVG
Product: Firefox → Core
QA Contact: general → general
(Reporter)

Comment 5

6 years ago
(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
(Assignee)

Updated

5 years ago
Depends on: 728111
Created attachment 599351 [details] [diff] [review]
Treat foreignObject as a fixed position containing block.
Attachment #599351 - Flags: review?(jwatt)

Updated

5 years ago
Attachment #599351 - Flags: review?(jwatt) → review+

Updated

5 years ago
Assignee: nobody → bzbarsky
OS: Windows XP → All
Hardware: x86 → All

Updated

5 years ago
Summary: svg foreignobject css position fixed no display → Make SVG foreignObject a CSS fixed position containing block
https://hg.mozilla.org/integration/mozilla-inbound/rev/5a90ee43d1f0
Flags: in-testsuite+
Target Milestone: --- → mozilla13
https://hg.mozilla.org/mozilla-central/rev/5a90ee43d1f0
Status: NEW → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → FIXED

Updated

2 years ago
Depends on: 984312
You need to log in before you can comment on or make changes to this bug.