Flipping for background
mistakes percentages in color functions for background-position
#92
Labels
background
mistakes percentages in color functions for background-position
#92
Consider the following definition:
The percent values are about the saturation and lightness of the generated color and are unrelated to directions.
Yet, when passing it through CSSJanus you get:
which is totally wrong.
Another example:
turns into
The root cause is probably this regex which tries to capture background-position values out of the
background
shorthand property.(As a side note, I'm not sure how this is even supposed to work well for actual position values, considering that the default alignment direction is still "left". For example,
turns into
which seems off)
The text was updated successfully, but these errors were encountered: