-
-
Notifications
You must be signed in to change notification settings - Fork 51
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
Style issues #1329
Comments
Just some thoughts: The mentioned problem does only seem to occur with Chrome not with Safari. However, I have been using Vivliostyle in a WKWebView on iOS, which is basically a Safari view inside an app. With it, I have been paginating HTML documents and converted them to PDFs. In this process, there are a lot of rounding / pixel-snapping errors with text underlines similar to the reported issue. The only way I could find to work around them is to blow up the scaling in Vivliostyle to 400% and to then scale the PDFs back down. It seems like the Chrome and Safari engines don't have a very precise model for underlines. |
I investigated this issue and found that the problem is caused by Chrome (Chromium)'s rendering of
As a result, the distance of the two lines of double underline becomes 1/8 px = 0.125px, which is too small and the gap is almost invisible. Possible workarounds will be:
|
Thanks for your reply, the problem is solved |
When applying the CSS styles with double underscores, specifically text-decoration-line: underline;, text-decoration-style: double;, and text-decoration-style: under;, the two lines appear to merge into one.The documentation indeed supports these properties.
bug
code.txt
The text was updated successfully, but these errors were encountered: