css icon indicating copy to clipboard operation
css copied to clipboard

🐞 Breakpoints different behavior on different devices?

Open oskar-gmerek opened this issue 3 years ago • 3 comments

What happened?

I just found out that my responsive layout looks different on mobile and desktop with the same breakpoints fulfilled.

This should display red background on screens up to 359px wide and blue on screens from 360px

<div class="bg:red bg:blue@3xs">

And this will not work as expected when I will change screen dimensions for width 375px (google chrome dev tools).

above will display red screen

This will work as expected if I change it to IPhone SE with a width of 375px (google chrome dev tools).

above will display blue screen

This will also work correctly on the mobile phone, so it's very rare to happen in real life in this particular example. But, these is 2 source of truth and highly affect DX.

Not sure if this makes any difference, but tested with AOT on SvelteKit

Version

2.0.0-beta.98

Relevant log output

No response

What browsers are you seeing the problem on?

Chrome

oskar-gmerek avatar Dec 25 '22 16:12 oskar-gmerek

Not quite sure about the problem you describe, but mine looks like this:

Screenshot 2022-12-26 at 4 38 00 PM Screenshot 2022-12-26 at 4 38 28 PM Screenshot 2022-12-26 at 4 23 19 PM

1aron avatar Dec 26 '22 08:12 1aron

This is how it looks on my side with this code:


<div class="bg:blue bg:red@3xs">TEST</div>

https://user-images.githubusercontent.com/53402105/209559256-1cf9f954-adee-4a60-b1db-1893415a902b.mov

oskar-gmerek avatar Dec 26 '22 14:12 oskar-gmerek

This is even more interesting, and may explain the lack of opportunity for reproduction on your side

https://user-images.githubusercontent.com/53402105/209559942-a7405054-a9ce-4a63-ac09-db07f5b15429.mov

oskar-gmerek avatar Dec 26 '22 14:12 oskar-gmerek