Closed Bug 1465732 Opened 6 years ago Closed 4 years ago

The handling of web pages with too wide elements could be improved

Categories

(Firefox for Android Graveyard :: General, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: julienw, Unassigned)

References

Details

Attachments

(5 files)

I wasn't sure where to file this, so here it is. Feel free to decompose this in several other bugs if necessary.

I got into this page: http://prolongement-m4.fr/vote-pour-nom-stations
And I found it wasn't rendered correctly in Firefox. The main reason is it has a wide iframe (width hardcoded to 2000px) and "overflow-x: hidden" set on body. As a result in Firefox the content of the iframe is cut, and we can't scroll to the right. We can zoom in but not zoom out (I think because of the meta viewport "width=device-width" ?).

Chrome's behavior is different: it seems to ignore the meta viewport and instead zooms out so that the full frame width is visible. Moreover we can actually zoom in and out.
This is very similar to what the page has.
Attached file testcase with a wide div (deleted) —
I tried this without an iframe but a wide div instead. I found the behavior is actually similar. In Chrome it's somewhat different: the page doesn't start zoomed out but we can still zoom out.
> In Chrome it's somewhat different: the page doesn't start zoomed out but we can still zoom out.
Actually I think this is exactly the meaning of the meta viewport I used here: "initial-scale=1". So for this last testcase Chrome obeys properly my viewport.

I don't know why Firefox doesn't allow the zoom out. Maybe because the <html> element itself has a small width, and we use this as maximum width?
Attached image screenshot in Firefox (deleted) —
Attached image screenshot in Chrome (deleted) —
Depends on: 1423013
We have completed our launch of our new Firefox on Android. The development of the new versions use GitHub for issue tracking. If the bug report still reproduces in a current version of [Firefox on Android nightly](https://play.google.com/store/apps/details?id=org.mozilla.fenix) an issue can be reported at the [Fenix GitHub project](https://github.com/mozilla-mobile/fenix/). If you want to discuss your report please use [Mozilla's chat](https://wiki.mozilla.org/Matrix#Connect_to_Matrix) server https://chat.mozilla.org and join the [#fenix](https://chat.mozilla.org/#/room/#fenix:mozilla.org) channel.
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → INCOMPLETE
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: