-
Notifications
You must be signed in to change notification settings - Fork 20
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
-webkit-line-box-contain: block glyphs replaced; breaks line-height #113
Comments
Isn't this the culprit? readium-css/css/dist/ReadiumCSS-after.css Lines 726 to 735 in 5830114
Take a look at the Web Inspector / CSS debugger, and find the style cascade for your |
Even if setting the Unless setting it to |
Just to clarify: are you sure that the |
Yes, I've tried via And even without explicitly setting the Disabling |
Just out of curiosity, Chrome / Chromium (Blink) or Safari / WebKit? What about Firefox? |
I can't reproduce anywhere except in the iOS WKWebView, even copying/pasting the HTML/CSS from the inspector. It says somewhere that the deprecated |
Ok thank you |
For reference, here's where this is set and the associated comment: readium-css/css/src/modules/ReadiumCSS-safeguards.css Lines 26 to 31 in 5830114
|
Ah, good find Mickael! :) |
To add some extra context, that was added at the time in order to keep consistent with iBooks and not surprise authors, should they happen to find themselves in the situation of a raised cap w/o a declared line-height while proofing/debugging their files. That being said, maybe keeping things consistent within ReadiumCSS-based apps is more important, as this is only applicable to Safari/iOS and there is no such safeguard for Chromium/Android. In that case it should be removed entirely. |
Proposed resolution: this should be removed in order to provide more consistency. |
I'm submitting a bug report
Short description of the issue/suggestion:
When there is a paragraph containing a long span, the line-height inside the span is too small. This happens even if explicitly setting style="line-height: 10.0" on the inner span.
Steps to reproduce the issue/enhancement:
What is the expected behaviour?
Normal line-height everywhere.
What is the current behaviour?
Short line-height inside the span.
Do you have screenshots, GIFs, demos or samples which demonstrate the problem or enhancement?
Note the especially small spacing between the 2nd and 3rd lines of the partially highlighted paragraph. The spacing between the 1st and 2nd, and between the 3rd and 4th lines seems slightly smaller, but it's a lot less noticable.
What is the motivation / use case for changing the behaviour?
For lines to be equally spaced
Do you know which CSS modules (stylesheets) are impacted?
ReadiumCSS-before.css
Please tell us about your environment:
Other information (e.g. related issues, suggestions how to fix, links for us to have context)
A workaround/fix is disabling
-webkit-line-box-contain: block glyphs replaced;
on thehtml
element by setting the default-webkit-line-box-contain: block inline replaced;
instead.I couldn't find any documentation on what
-webkit-line-box-contain: block glyphs replaced;
actually means.The text was updated successfully, but these errors were encountered: