radkovo / jStyleParser

jStyleParser is a CSS parser written in Java. It has its own application interface that is designed to allow an efficient CSS processing in Java and mapping the values to the Java data types. It parses CSS 2.1 style sheets into structures that can be efficiently assigned to DOM elements. It is intended be the primary CSS parser for the CSSBox library. While handling errors, it is user agent conforming according to the CSS specification.
http://cssbox.sourceforge.net/jstyleparser/
GNU Lesser General Public License v3.0
92 stars 49 forks source link

Parsing shorthand values can result in bad css #33

Closed church29 closed 9 years ago

church29 commented 9 years ago

To reproduce: Attempt to parse and print margin: 2px 0 0 0 Expected Result: margin: 2px 0 0 0 Actual Result: margin: 2px000

radkovo commented 9 years ago

Hi, I'm not able to reproduce it here. Could you provide a simple test case and jStyleParser version you are using?

church29 commented 9 years ago

The issue occurs in rule.toString

ChristophKaser commented 9 years ago

This was fixed with https://github.com/radkovo/jStyleParser/pull/23