css4j / echosvg

SVG implementation in the Java™ Language, fork of Apache Batik, supporting level 4 selectors and colors.
Apache License 2.0
39 stars 2 forks source link

Test samples contain non-conformant font-size declarations #58

Closed carlosame closed 2 years ago

carlosame commented 2 years ago

The SVG files under the samples directory often contain declarations like this:

font-size:   12;

which EchoSVG interprets as a size declaration expressed in pixels. Google Chrome also accepts such declarations but this is not conformant and for example Firefox would reject the style as invalid. It is also an obstacle for the combined use of css4j, which also rejects those declarations.

The solution is to replace such declarations with valid ones:

font-size:   12px;