Uploaded image for project: 'Batik'
  1. Batik
  2. BATIK-392

CSSStyleDeclaration local URI fragment vs computed value

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Resolution: Fixed
    • 1.5
    • None
    • CSS
    • 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?

      Attachments

        Activity

          People

            batik-dev@xmlgraphics.apache.org Batik Developer's Mailing list
            tonny@kiyut.com Tonny
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: