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

support for overflow-x and overflow-y? #36

Open hrj opened 9 years ago

hrj commented 9 years ago

These are not yet standardised, but unofficially supported by all browsers since a long time.

For a blast from the past, this article is a good read.

radkovo commented 9 years ago

Hi, I have added a basic support for overflow-x and overflow-y parsing. However, they still remain independent on overflow in DOMAnalyser so the client app must consider the value of overflow when determining the computed values of overflow-x and overflow-y. It would be probably logical and consistent to transform overflow to overflow-x and -y but it would break the backward compatibility because no value would be actually available for overflow itself. We should probably wait with this until CSS Overflow Module Level 3 reaches some more stable version.

hrj commented 9 years ago

Thanks @radkovo for the quick response. It works!

The fall back to overflow is already implemented in gngr so that is not a significant problem for us (except for edge-cases such as both the short form and long form being specified in the same rule).

I guess, this issue can be left open for the fall back support in jStyleParser.