Christoph Läubrich created BATIK-1294: -----------------------------------------
Summary: User CSS is not applied as a transcoding hint and important rule is ignored Key: BATIK-1294 URL: https://issues.apache.org/jira/browse/BATIK-1294 Project: Batik Issue Type: Bug Components: CSS Affects Versions: 1.13 Reporter: Christoph Läubrich I try to use a user css and found the following issues: # User CSS given as a transcoding hint is silently ignored # If a SVG element includes a style, css can't be overridden even if !important is given in the CSS I have created a simple project that demonstrates the issue: https://github.com/laeubi/bugs/tree/batik-user-css It includes a [svg|https://github.com/laeubi/bugs/blob/batik-user-css/src/main/resources/test.svg] with two circles, one with no styles attribute (rendered black by default) an one with a style attribute (yellow with black border). The [css|https://github.com/laeubi/bugs/blob/batik-user-css/src/main/resources/styles.css] includes two rules to override that. If one runs [the example|https://github.com/laeubi/bugs/blob/batik-user-css/src/main/java/usercss/ParserTest.java] without any argument no css is applied at all even though a transcoding hint is given. If the example is run with "true" (or something else) as a parameter the css is given via the User-Agent-CSS, then it is applied (the first circle turns to blue) but the css rule marked with !important is ignored and does not override the given style as expected. These both issues making it really hard to customize the appearance of SVG document via css. -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: batik-dev-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: batik-dev-h...@xmlgraphics.apache.org