-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
CSS Visibility (and QLayout) media-queries min/max bug #9829
Comments
just encountered this one on |
I'm sorry, but what kind of broken browsers are you using? |
This is MS Edge and Firefox (latest stable versions for a while). Maybe it's a Windows bug that communicates window width incorrectly to browsers but I would like to see a workaround for this case because like Ahriana said, with snapping windows the given screen sizes are met and the whole style just messes up. |
Edge 91 is a chrome one or an old trident one? Can you reproduce it in:
Are you using any sort of zoom (in browser, HiDPI or how it is called the scaling in windows)? All these questions are because:
|
Btw, firefox emulation mode is very bad, I would trust more Edge/Chrome/Safari dev tools And maybe also check in incognito mode with extensions disabled |
Ah good one! Yes I am using DPI scaling (in Windows 10 and 11), scaled to 125%. Also;
Good to know, thanks |
Just found this in the w3 specs about Media Queries:
|
ok, we (you) found the problem - I'll take a look at the fix :) |
in my case, the gt- observes this issue also, say you have gt-sm and u sit on that 1px boundary gt- wont work at all, but col-sm functions as normal i observed this on latest chrome and edge |
Enhancement will be available in Quasar v2.4.2 and v1.17 |
Describe the bug
The CSS visibility utils like
lt-
andgt-
are using$breakpoint-[...]-max
asmax-width
@media query.However,
max-width
works like<max-width
, and not like<=max-width
.As the
min-width
is previous-max-width
plus 1px, there falls a gap of 1px betweenmax
andmin
.This results in inconsistent behaviour on some specific screen sizes (599, 1023, 1439, 1919) where no
display: none
will apply.Also, when resizing the window it is worth noting that the layout 'flickers' when passing the given screen sizes.
Codepen/jsFiddle/Codesandbox (required)
https://jsfiddle.net/y4t86sgx/3/
To Reproduce
Steps to reproduce the behavior:
Expected behavior
There are two solutions;
Make
$breakpoint-[...]-max
same as$breakpoint-[...+1]-min
Or
Change
lt-
,gt-
andq-layout-padding
to use$breakpoint-[...+1]-min
asmax-width
Screenshots
Platform (please complete the following information):
Quasar Version: 2.0.0
@quasar/app Version: n/a
Quasar mode: modes where CSS classes are used
Tested on:
OS: Windows 10 Home
Node: 14.15.4
NPM: 7.18.1
Yarn: 1.22.10
Browsers: Edge 91.0.864.59, Firefox 89.0.2
iOS: Absolutely not
Android: 11
Electron: -
Additional context
The text was updated successfully, but these errors were encountered: