Chris Olin created BATIK-1149:
---------------------------------
Summary: CSSLexicalUnit.getIntegerValue throws ISE when parsing
RGB percentages
Key: BATIK-1149
URL: https://issues.apache.org/jira/browse/BATIK-1149
Project: Batik
Issue Type: Bug
Components: CSS
Affects Versions: 1.8, 1.7
Reporter: Chris Olin
*Synopsis*
Per http://www.w3schools.com/cssref/css_colors_legal.asp:
{quote}
RGB color values are supported in all major browsers.
An RGB color value is specified with: rgb(red, green, blue). Each parameter
(red, green, and blue) defines the intensity of the color and can be an integer
between 0 and 255 or a percentage value (from 0% to 100%).
For example, the rgb(0,0,255) value is rendered as blue, because the blue
parameter is set to its highest value (255) and the others are set to 0.
Also, the following values define equal color: rgb(0,0,255) and rgb(0%,0%,100%).
{quote}.
In batik-css-1.7 and 1.8, the CSSLexicalUnit.getIntegerValue method throws an
IllegalStateException when defining the rgb value using percentages. Example
code below:
{code}
<span style="color: rgb(10%,10%,80%)">foo</span>
{code}
*Additional info*
https://github.com/bobpaulin/owaspantisamy/issues/189
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]