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

No proper RGBColor for color keywords

    Details

    • Type: Bug
    • Status: In Progress
    • Resolution: Unresolved
    • Affects Version/s: 1.5
    • Fix Version/s: None
    • Component/s: CSS
    • Labels:
      None
    • Environment:
      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

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

              Dates

              • Created:
                Updated: