-
Notifications
You must be signed in to change notification settings - Fork 245
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
Modal (horizontal) recentering test fails off when scrollbar is present #140
Comments
This strikes me as a minor glitch. Perhaps I can submit a pull request changing the test to +/-10px? |
I feel like the +/- 1px was mostly to deal with Retina-ness and bring
off-by-one. 10px seems extreme. Is there another styling reason why this is
failing?
…On Tue., 18 Apr. 2017, 21:22 Ryan Laboucane, ***@***.***> wrote:
This strikes me as a minor glitch. Perhaps I can submit a pull request
changing the test to +/-10px?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#140 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAHRkMiyyVltBog6k88rOFrCUzaGKHQDks5rxJ0CgaJpZM4M_vBQ>
.
|
Somewhat, but I've narrowed it down, this block seems to be causing the error:
This line changes the body width by.. 14px, which is the width of the scroll bar. So basically, it seems like horizontal centering isn't actually happening relative to the viewport. |
And, I've found a good analysis why... tl;dr version: All major browsers except Safari deviate from the CSS spec on their implementations of |
I guess there are one of two proposals I would have at this point:
|
Viewing the test page on Firefox has all tests pass except the one that checks the left position. The tests will all pass in responsive design mode, but not in normal viewing mode.
To reproduce:
The test seems to be always off by exactly 7px, no matter what size the browser window is in. Here's the output:
[EDIT Apr 19, 2017]: This happens in every browser I've tried under Linux, including Chrome, Opera, and Vivaldi
The text was updated successfully, but these errors were encountered: