roxrook / svg-android

Automatically exported from code.google.com/p/svg-android
0 stars 0 forks source link

3-digit hex colours are not recognised #33

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

Use a 3-digit hexadecimal colour specifier in the stroke parameter, e.g.
<line x1="10" y1="20" x2="50" y2="20" style="stroke: #f00; stroke-width: 5;"/>

What is the expected output? What do you see instead?

Expected output: #xyz is interpreted as #rgb, i.e., #f00 yields bright red.
Actual output: #xyz is interpreted as a suffix of #uvwxyz, i.e., #f00 yields a 
very dim green #000f00.

What version of the product are you using? On what operating system?

svg-android-1.1.jar in Android SDK 2.3.3 (API 10), java 1.6.0_22 on linux 
2.6.42.9-2

Please provide any additional information below.

Original issue reported on code.google.com by vasek.po...@gmail.com on 26 May 2012 at 7:37