Open Bug 1526940 Opened 6 years ago Updated 2 years ago

Viewport's width is larger than the available width at load time in a mobile site

Categories

(Core :: Layout, defect, P3)

Unspecified
Android
defect

Tracking

()

Tracking Status
firefox67 --- fix-optional
firefox68 --- wontfix

People

(Reporter: julienw, Unassigned)

References

(Blocks 1 open bug)

Details

(Keywords: regression, Whiteboard: Should be fixed by bug 1519013)

Hi,

This is something I see often when reading news on lemonde.fr for some weeks now, happening on Android. I'm linking this to the fix in bug 1423013 but this is a wild guess.

When loading some of the news article (an example is [1]), there's a very slight difference between the device's width and the viewport's width, leading to the website being horizontally scrollable, which is a UX problem because scrolling horizontally blocks the vertical scroll when I trigger it by mistake.

From what I see, the images take the full viewport's width (which is expected from their width: 100%), but all the text + the footer's background extend only to the edge of the device's width. The footer especially is a "normal" block element so it should also normally extend to the full width.

So clearly there's something fishy happening.

Related or unrelated, the images lazy loading doesn't work properly, we need to scroll down during a long height below the image to make it load. Content images in this page use a <picture> container, maybe that's related.

Both these problems don't reproduce in devtools' responsive view.

[1] https://www.lemonde.fr/culture/article/2019/02/11/grammy-awards-2019-this-is-america-de-childish-gambino-elue-chanson-de-l-annee_5421811_3246.html

I've seen this on a few websites as well, where the content is just ever so slightly horizontally scrollable. I wonder if there's a rounding error or something happening during minimum scale computation.

id=Header element in the site takes 374px width on 360px width device. And I can see a child element in the header has 'width: 100%' with 'padding: 1.2rem 0'.

This should be fixed by bug 1519013.

Depends on: 1519013
Priority: -- → P3

Hiroyuki, per comment 3, should we dup this to bug 1519013?

Flags: needinfo?(hikezoe)

In cases like this, I think it's better to leave this open until bug 1519013 is fixed, then re-test the site in this bug. If the issue is indeed fixed, we can dup this to bug 1519013 at that point.

This way, in case bug 1519013 does not fix this issue after all, we don't forget about it.

Flags: needinfo?(hikezoe)

I totally agree with Borond.

Whiteboard: Should be fixed by bug 1519013

This bug depends on bug 1519013 which depends on bug 1516056, which targets 68. We may evaluate uplifting targeted patches to fix this issue and bug 1519013 but given the multiple dependencies and the fact that we are now in beta for 67, I am marking this bug as fix-optional so as to remove it from our weekly regression triage.

I did confirm bug 1519013 didn't fix this at all. And now I noticed that Chrome Canary doesn't fit the content to screen either. :/ I don't know why yet.

(In reply to Botond Ballo [:botond] from comment #1)

I've seen this on a few websites as well, where the content is just ever so slightly horizontally scrollable. I wonder if there's a rounding error or something happening during minimum scale computation.

It's possible that this has to do with the snapping issue described here.

I confirm this still happens in today's nightly of Fennec.

See Also: → 1542930

Bulk change of P3 carryover bugs to wontfix for 68.

This has started to affect Github pages such as https://github.com/mozilla-mobile and https://github.com/mozilla-mobile/focus-android/ sometime between 68 and 69.

(In reply to Botond Ballo [:botond] from comment #12)

This has started to affect Github pages such as https://github.com/mozilla-mobile and https://github.com/mozilla-mobile/focus-android/ sometime between 68 and 69.

Note that this only happens with "Request desktop mode", even on a tablet where the server sends the same content with or without "Request desktop mode".

See Also: → 1762255
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.