Closed Bug 294536 Opened 20 years ago Closed 20 years ago

[FIXr]SVG fill command in inline styles not obeyed when embedded in XUL

Categories

(Core :: XUL, defect, P2)

defect

Tracking

()

RESOLVED FIXED
mozilla1.8beta3

People

(Reporter: dalej, Assigned: bzbarsky)

Details

Attachments

(2 files)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8b2) Gecko/20050510
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8b2) Gecko/20050510

The fill command in the following inline style for an svg:rect tag is ignored in
current mozilla-win32-svg-GDI builds.  It works in older builds circa 2004/08. 
The example I will attach is embedded in XUL.

<svg:rect x="220" y="400" width="10" height="32"
          style="stroke:black; stroke-width:2px; fill:red"/>


Reproducible: Always

Steps to Reproduce:
1. Load file style-bug.xul into the browser.
2.
3.

Actual Results:  
Two rectangles are shown, one filled with black and one filled with red.

Expected Results:  
Both rectangles should be filled with red.
Assignee: guifeatures → general
Component: XP Apps: GUI Features → SVG
Product: Mozilla Application Suite → Core
QA Contact: ian
Version: unspecified → Trunk
This actually applies to anything in the "style" attribute of an SVG node.  The
style attribute is completely ignored, and gets set to empty.  If you set it
using a stylesheet or change it after the page is loaded, it does honor these
properties.

Someone with permission should update the summary.
Attached patch Proposed patchSplinter Review
UL's creating nodes with a bogus-ish nodeinfo, so they have a null
ownerDocument and don't parse the style when the attributes are set on them. 
This just gets the nodeinfo right (and then when we insert the node we don't
have to give it a new nodeinfo).
Attachment #184721 - Flags: superreview?(peterv)
Attachment #184721 - Flags: review?(peterv)
Assignee: general → nobody
Status: UNCONFIRMED → NEW
Component: SVG → XP Toolkit/Widgets: XUL
Ever confirmed: true
OS: Windows 2000 → All
QA Contact: ian → xptoolkit.xul
Hardware: PC → All
Assignee: nobody → bzbarsky
Priority: -- → P2
Summary: SVG fill command in inline styles not obeyed when embedded in XUL → [FIX]SVG fill command in inline styles not obeyed when embedded in XUL
Target Milestone: --- → mozilla1.8beta3
Component: XP Toolkit/Widgets: XUL → SVG
OS: All → Windows 2000
Priority: P2 → --
Hardware: All → PC
Target Milestone: mozilla1.8beta3 → ---
Component: SVG → XP Toolkit/Widgets: XUL
OS: Windows 2000 → All
Priority: -- → P2
Hardware: PC → All
Target Milestone: --- → mozilla1.8beta3
Attachment #184721 - Flags: superreview?(peterv)
Attachment #184721 - Flags: superreview+
Attachment #184721 - Flags: review?(peterv)
Attachment #184721 - Flags: review+
Summary: [FIX]SVG fill command in inline styles not obeyed when embedded in XUL → [FIXr]SVG fill command in inline styles not obeyed when embedded in XUL
Comment on attachment 184721 [details] [diff] [review]
Proposed patch

Requesting 1.8b3 approval; this makes XUL play a little nicer with non-XUL
elements.
Attachment #184721 - Flags: approval1.8b3?
Attachment #184721 - Flags: approval1.8b3? → approval1.8b3+
Fixed.
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Component: XP Toolkit/Widgets: XUL → XUL
QA Contact: xptoolkit.xul → xptoolkit.widgets
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: