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)
Core
XUL
Tracking
()
RESOLVED
FIXED
mozilla1.8beta3
People
(Reporter: dalej, Assigned: bzbarsky)
Details
Attachments
(2 files)
|
555 bytes,
application/vnd.mozilla.xul+xml
|
Details | |
|
1.85 KB,
patch
|
peterv
:
review+
peterv
:
superreview+
asa
:
approval1.8b3+
|
Details | Diff | Splinter Review |
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.| Reporter | ||
Comment 1•20 years ago
|
||
Updated•20 years ago
|
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.
| Assignee | ||
Comment 3•20 years ago
|
||
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).
| Assignee | ||
Updated•20 years ago
|
Attachment #184721 -
Flags: superreview?(peterv)
Attachment #184721 -
Flags: review?(peterv)
| Assignee | ||
Updated•20 years ago
|
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 | ||
Updated•20 years ago
|
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
Updated•20 years ago
|
Component: XP Toolkit/Widgets: XUL → SVG
OS: All → Windows 2000
Priority: P2 → --
Hardware: All → PC
Target Milestone: mozilla1.8beta3 → ---
| Assignee | ||
Updated•20 years ago
|
Component: SVG → XP Toolkit/Widgets: XUL
OS: Windows 2000 → All
Priority: -- → P2
Hardware: PC → All
Target Milestone: --- → mozilla1.8beta3
Updated•20 years ago
|
Attachment #184721 -
Flags: superreview?(peterv)
Attachment #184721 -
Flags: superreview+
Attachment #184721 -
Flags: review?(peterv)
Attachment #184721 -
Flags: review+
| Assignee | ||
Updated•20 years ago
|
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
| Assignee | ||
Comment 4•20 years ago
|
||
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?
Updated•20 years ago
|
Attachment #184721 -
Flags: approval1.8b3? → approval1.8b3+
| Assignee | ||
Comment 5•20 years ago
|
||
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.
Description
•