-
-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
column is incorrect #269
Comments
I have never cared about positions in Stylis so I have never noticed that. You are right though - I don't think this can reliably be used right now. The problem is that To be absolutely sure if this is a bug in the code of if this is by design we would have to wait for @thysultan's comment on this. |
Thanks for your quick response I guess we could also integrate it without positions.. In that case you might think about removing them.. Just out of curiosity - why is the column position amount to high? Couldn't we just store the column before it is incremented? I tried removing the value and you are absolutely right - it was always wrong by 3 characters |
Because the And it's only used when creating
This would probably be the ideal solution for a fix. The current position would have to be stored and, most likely, passed to At the moment, I don't think this is overly complicated to fix but Stylis codebase is a little bit clever and it has been months since I've looked at it. Can't promise to look into it any time soon - unless you would like to take a stab at it. I would be open to answering questions about the codebase and to reviewing a PR |
column denotes where it ends: i.e |
Hi :)
I am trying to integrate stylis.js into https://astexplorer.net/ and it looks quite promising however it seems like that all column values are wrong (or I don't understand what column means).
In the following example I would expect line: 1 column: 4
However it generates column 29:
The text was updated successfully, but these errors were encountered: