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

No proper RGBColor for color keywords

    XMLWordPrintableJSON

Details

    • Bug
    • Status: In Progress
    • Resolution: Unresolved
    • 1.5
    • None
    • CSS
    • None
    • Operating System: other
      Platform: Other

    Description

      Batik passes

      <svg xmlns="http://www.w3.org/2000/svg" version="1.1">

      <rect id="test" fill="#f00" width="100" height="100" />

      <script type="text/ecmascript">
      var test = document.getElementById('test');
      var cssv = test.getPresentationAttribute("fill");
      try
      {
      if (cssv.RGBColor.red) // should be rgbColor, see BATIK-540

      { test.setAttributeNS(null, "fill", "green") }

      }
      catch (e)

      { // ignore errors }

      </script>

      </svg>

      but fails the test if it is changed to

      <rect id="test" fill="red" width="100" height="100" />

      Attachments

        Activity

          People

            batik-dev@xmlgraphics.apache.org Batik Developer's Mailing list
            bjoern@hoehrmann.de Bj
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: