-
-
Notifications
You must be signed in to change notification settings - Fork 161
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
Make all instances of 99.9*% consistent. #309
Comments
Can this be set to 99.99%? Add the hundredths place removes a single pixel vertical line I've been noticing on the far right of my columns in some circumstances in Chrome. |
Hmmm. Shoot. I think this is going to be a constant moving target. @metaloha could you share where you're having this issue so I can see specifically where it might be? I'll put it on my TODO list to check out the latest in pixel rounding in the latest browsers. |
It is visible in the latest Chrome on OSX by simply creating a 2-column flex grid with no gutter and with a solid background colour. The 2 columns don't quite add up to 100%, leaving a single pixel of space on the far right in the browser's default colour. I believe I noticed this same thing in Firefox on OSX as well, but haven't double-checked it. |
Same here, two-col flex grid with no gutter with 100% wide images in each: I suppose the 99.9% (vs 100%) are necessary for IE? Is this still really needed? |
I'll be honest that right now I'm completely swamped with work so I have not given this as much time as I'd like. I have been doing some testing of the pixel rounding issues. I'm going to look at the support issue, as @psamhaber mentioned. Where I have found this to be a trouble area is when you have multiple nested columns. 1/2 => 1/2 => 1/8 (I've seen it in several places in navbars, etc). This is where I've seen the pixel rounding needed most of all but each browser treats it differently. Safari has been causing some of those issues lately but it wasn't on the latest version. So then the question is whether or not the next version of LostGrid will support those older versions of Safari. There are reasons to move on for sure. |
@psamhaber The In my tests (throwing tons of stuff/nested stuff) at it, Maybe this should revert back to You're right though, this will always be a moving target since browsers are absolutely incapable of coming to common ground on how to divide a pixel... 😒 |
Closing for #332 |
@metaloha @psamhaber Give this release a try: https://github.com/peterramsing/lost/releases/tag/v8.0.0-beta.1 You can fine tune the "rounder" or the percentage of width with |
You offering 2 rounder settings (1 for gutterless, 1 for gutter)? |
Just a global and per rule. I suppose it could be expanded to a gutter and gutter-less. Off the top of my head I'm not sure the need for both but I haven't tested out all that the param has to offer just yet. |
@corysimmons Now I think I get it. ...because this is mostly issues if you don't have gutters? ...okay, now I'm thinking on it some more. |
If If So you'd need 2 rounder settings. One for each of those formula types. It'd need to be set globally, as well as locally. |
Is this a feature request or a bug report?
What is the current behavior?
What is the behavior that you expect?
What's the motivation or use-case behind changing the behavior?
Anything else?
Don't want to get too nit-picky. This is just a minor personal issue that I'd like to clean up.
The text was updated successfully, but these errors were encountered: