-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[svg] Borders are blurred and moved when using non-pixel values eg. rem, em like Bootstrap #6667
Comments
Please provide more detailed steps to reproduce. I can't see |
Unfortunately, I can't reproduce this on Codesandbox. @budnix is able to replicate a blur locally with this code in React https://codesandbox.io/s/800beta-svg-blur-opolh. |
The problem is related to blurry rendering of SVG when it is preceded by another element that does not have dimensions expressed in pixels. I can simulate the same problem with a simple SVG object and:
The problem is reproducible in IE and Edge (EdgeHTML). I don't know what to do :( I will seek help on Stack Overflow: https://stackoverflow.com/questions/60300141/blurry-path-edges-in-ie-edge-when-svg-is-preceded-by-an-element-not-sized-in-p ScreenshotsThe below screenshots illustrate the problem using the JSFiddles linked above. The left part of the screenshot is Chrome, the right part is Edge (EdgeHTML). |
…page (#6667) the problem came from the fact that IE and EdgeHTML engine do not snap SVG paths to the full pixel when any of the preceding elements have a value expressed in non-px units. The solution is to transform the element by the subpixel value.
After investigation, I have to admit that the problem is not fixable in IE. This is a similar problem to 125%, 150%, 175% DPI. Whenever sub-pixel values come to play, there is very high chance that they will be rendered blurry in IE/Edge. |
This is an issue reported for the SVG borders project, which was rejected and won't be implemented in Handsontable. |
Description
Borders are blurred when using non-pixel values eg.
rem
,em
After adding bootstrap
and surrounding div with Handsontable table with this bootstrap
<h3>test</h3>
(1,75 rem) Handsontable starts to be blurry.Demo
https://codesandbox.io/s/bootstrap-800-svg-je9wr
Your environment
The text was updated successfully, but these errors were encountered: