-
Notifications
You must be signed in to change notification settings - Fork 62
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
shiki.style - In the "transformerRenderWhitespace" section, chances are the dots and tabs are at baseline, rather that in the middle line #137667
Comments
We appreciate your report. Unfortunately having insufficient details about the issue you submitted, we cannot help you with it. Please leave a comment with more details regarding the issue you are facing and steps to reproduce it, or file a new report with specific details and we will gladly investigate this further Closing this as Incomplete. [qa_23/2024] |
I have made a minimum reproduction. https://gist.github.com/Master-Hash/841c4565f17bff6ed707ad3f70d3530b Step:
.buggy {
line-height: 1.75
} in HTML, and the dots are correctly placed. I believe it is a bug of Firefox, because of the inconsistency: In a larger file, I met a situation where the first line is good but rest are bad OR all lines are bad, and the result is different every time I refresh. I hope my description is sufficient for you and thanks for looking into it! |
What I would do usually to test this kind of issue, is:
Note: You can return to your old profile at any given time by accessing "about:profiles" in the address bar [inv_23/2024] |
Hello, I created a new profile, and noticed the first time I opened the HTML, it looked nice, and after refreshing it always broke. |
@Master-Hash Opening the link does not show the Can you please submit a screenrec for clarification? [inv_23/2024] |
download the HTML and open locally. |
@softvision-raul-bucata is it reproducible? |
Here's the screen record: out.mp4 |
@Master-Hash So the only difference on my side, is that when checking [inv_24/2024] |
The problem is that the dots are misplaced at first. If checking If you're not clear, can you show some screenshot? |
@Master-Hash It is clear, but for me the dots are placed correctly, only after checking the line-height attribute the dots are misplaced [inv_24/2024] |
It sounds strange, since my mobile phone, my Window and Linux PC all can reproduce it... Did you notice the first line? I found that there are circumstances where only dots of the 1st line are misplaced, and after checking the line-height attribute all dots of 3 lines are misplaced. Only 4 dots are in the 1st line, which may be hard to notice. If you're sure it's not reproducible, I'll give up. |
Moved to bugzilla: https://bugzilla.mozilla.org/show_bug.cgi?id=1904634 [inv_26/2024] |
URL: https://shiki.style/packages/transformers
Browser / Version: Firefox 126.0
Operating System: Windows 10
Tested Another Browser: Yes Chrome
Problem type: Design is broken
Description: Items are misaligned
Steps to Reproduce:
In the "transformerRenderWhitespace" section, chances are the dots and tabs are at baseline, rather that in the middle line.
To pop up F12, or to opt-out the .vp-code .space::before {
content: "·";
} would make it correctly display.
Chrome always renders it correctly.
View the screenshot
Browser Configuration
From webcompat.com with ❤️
The text was updated successfully, but these errors were encountered: