File tree Expand file tree Collapse file tree 3 files changed +10
-1
lines changed
main/scala/org/geoscript/geocss
scala/org/geoscript/geocss Expand file tree Collapse file tree 3 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -330,7 +330,7 @@ object CssOps {
330
330
val chars = hex.flatMap(Seq .fill(2 )(_)).mkString(" #" , " " , " " )
331
331
Some (filters.literal(chars))
332
332
case Literal (name) =>
333
- colors.get(name).map(filters.literal(_))
333
+ colors.get(name.toLowerCase ).map(filters.literal(_))
334
334
case v =>
335
335
valueToExpression(v)
336
336
}
Original file line number Diff line number Diff line change
1
+ * {
2
+ fill : IndianRed;
3
+ }
Original file line number Diff line number Diff line change @@ -354,6 +354,12 @@ class SLDTest extends FunSuite with ShouldMatchers {
354
354
val fontFill = css2sld2dom(" /font-fill.css" )
355
355
(fontFill \\ " GraphicFill" ) should have(size(0 ))
356
356
}
357
+
358
+ test(" Colors are interpreted in case insensitive manner" ) {
359
+ val labels = css2sld2dom(" /colorname.css" )
360
+ val cssParameter = labels \\ " PolygonSymbolizer" \\ " Fill" \\ " CssParameter"
361
+ cssParameter.text should equal(" #cd5c5c" )
362
+ }
357
363
358
364
test(" Everything should convert without throwing Exceptions" ) {
359
365
val testData = Seq (
You can’t perform that action at this time.
0 commit comments