Implement nsIDOMSVGStylable.getPresentationAttribute

RESOLVED WONTFIX

Status

()

Core
SVG
RESOLVED WONTFIX
8 years ago
5 years ago

People

(Reporter: Jeff Schiller, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Reporter)

Description

8 years ago
Created attachment 385545 [details]
Test case revealing the problem.

Attached test case illustrates that at least one method has not been implemented in the SVGStylable interface: getPresentationAttribute [1]

This test case also covers:

- getting the rgbColor property from the SVGColor object [2]
- getting the red/green/blue properties from an RGBColor object [3]
- getting the float value from the CSSPrimitiveValue object [4]

Opera and WebKit both pass this test case.

It would also be nice to add this (and any other) unimplemented DOM methods/properties to http://www.mozilla.org/projects/svg/status.html

[1] http://www.w3.org/TR/SVG11/types.html#InterfaceSVGStylable
[2] http://www.w3.org/TR/SVG11/types.html#InterfaceSVGColor
[3] http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-RGBColor
[4] http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSPrimitiveValue

Comment 1

8 years ago
This is what the code says within that method...

  // Let's not implement this just yet. The CSSValue interface has been
  // deprecated by the CSS WG.
  // http://lists.w3.org/Archives/Public/www-style/2003Oct/0347.html
(Reporter)

Comment 2

8 years ago
Oh the things I'm learning...

Well since it's been 6 years and there's no new version of that document, and Opera and Webkit have implemented this interface, maybe Mozilla needs to go with the other browsers?

The other option is to implement the SVGT1.2 uDOM: http://www.w3.org/TR/SVGMobile12/svgudomidl.html so that we can use getRGBColorPresentationTrait()?

Comment 3

5 years ago
We don't support SVGColor in every situation at WebKit and consider removing this interface completely in the future since it is deprecated. The same for getPresentationAttribute() and SVGPaint.

See webkit bugs:
https://bugs.webkit.org/show_bug.cgi?id=83404
https://bugs.webkit.org/show_bug.cgi?id=15012

Comment 4

5 years ago
This method is deprecated in SVG 1.1.
Status: NEW → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.