While debugging a styled element, I sometimes look at styleInfo to show the origin of the rule being matched.
I noticed that the line numbers were sometimes off by a few lines, which is confusing.
After reproducing I figured that the line counts were incorrect because they seem to ignore empty lines.
Here is a repro case:
linenumbers-in-styleinfo.css
While debugging a styled element, I sometimes look at
styleInfo
to show the origin of the rule being matched. I noticed that the line numbers were sometimes off by a few lines, which is confusing. After reproducing I figured that the line counts were incorrect because they seem to ignore empty lines. Here is a repro case: linenumbers-in-styleinfo.cssapp.qml
Notice how the .title rule is said to be coming from line 6 when it actually comes from line 31