Details
-
Bug
-
Status: Resolved
-
Resolution: Fixed
-
1.5
-
None
-
None
-
Operating System: All
Platform: All
Description
CSSStyleDeclaration on setting URI reference (local URI(fragment only), not
external & not absolute) always reformat the value provided into absolute URI path.
CSSStyleDeclaration.setProperty(name,value) always reformat the value provided
into absolute URI path.
is this bug, design, or specification of CSS on local URI?
does it suppose to just validate the value and if valid accept the value as it
is? Then if using ComputedValue on ViewCSS it is appended the baseURI, if not
computed value the value is still local URI reference
ex:
SVGStylable svgStylable = (SVGStylable)element;
CSSStyleDeclaration cssStyle = svgStylable.getStyle();
cssStyle.setProperty(attr, "url("localUri")",""); //set local relative uri,
using only fragment eg:#gradient01
System.out.println(cssStyle.getCssText()); // show absolute uri, is this
bug,design,or spec?