Closed AdrianSorop closed 1 year ago
Input is processed per https://www.w3.org/TR/2021/CRD-css-syntax-3-20211224/#input-preprocessing But yes, it leads to some mismatch when you apply the line/col numbers to the original stream, which is mainly an issue for partially minimised CSS.
I validated a file that had \r\n as end line separator. The localization of errors was off. I managed to reduce the problem to the
org.w3c.css.util.UnescapeFilterReader
. It seems like the reader replaces \r with \nHere's the quick unit test for the issue: