New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 776865 link

Starred by 1 user

Issue metadata

Status: Assigned
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 2
Type: Bug



Sign in to add a comment

Overflow: hidden does not prevent page length increase with absolutely positioned div outside page width on mobile

Reported by mcome...@mozilla.com, Oct 20 2017

Issue description

Steps to reproduce the problem:
In the attached test case, using a mobile Chrome, mobile WebView, or desktop Chrome in responsive design mode:

1. Click "Pseudo-Element" button

What is the expected behavior?
Page length does not increase and does not have extra scrollable space

What went wrong?
Page length increases and has extra scrollable space

Did this work before? N/A 

Does this work in other browsers? Yes

Chrome version: 51.0.2704.81 (Official Build) (32-bit)  Channel: n/a
OS Version: 6.0.0
Flash Version: 

This works differently in desktop Firefox responsive design mode and mobile Firefox: I'm unsure if Chrome or Firefox has the correct behavior but I think Firefox has the more intuitive behavior (caveat: I'm not great at CSS).

This issue comes from the Firefox Focus project, which is based on WebView; we're tracking this issue in: https://github.com/mozilla-mobile/focus-android/issues/1228

The test case is also available at: https://www.benjaminpalmero.be/overflow/
 
overflow-bug.tar.gz
23.9 KB Download
Labels: Needs-triage-Mobile
Cc: msrchandra@chromium.org nyerramilli@chromium.org sandeepkumars@chromium.org
Labels: M-64 Triaged-Mobile
Status: Untriaged (was: Unconfirmed)
Tested the issue using #62.0.3202.66 on 6.0.1: SM-J710F Build/MMB29K as per the steps mentioned below.

1. Navigated to https://www.benjaminpalmero.be/overflow/
2. Clicked on Pseudo-Element
3. Scroll bar is triggering on first tap
4. Nothing happens on second tap

Somehow observed the same behavior in Firefox as well. Untriaged as this seems to be a Non-Regression issue.

Note: Nothing happens on clicking Pseudo-Element in Chrome Desktop.

Please navigate to below link for log's and video--
go/chrome-androidlogs/776865

Thanks!! 


The test page, https://www.benjaminpalmero.be/overflow/, has been modified: please use the attached test case for the original STR. That being said, I still observe strange behavior on the updated page with regards to horizontal scrolling. Here are some additional comments from our bug (https://github.com/mozilla-mobile/focus-android/issues/1228#issuecomment-338595997):

> I tried some other things, and it seems like the problem occurs only when the overflow property is set on the body.
> 
> If I put all the divs inside a section and set the overflow-x: hidden on the section, there is no horizontal scroll.
> 
> I've added this to my test page: http://www.benjaminpalmero.be/overflow
> 
> And indeed, firefox mobile has the most intuitive behavior since overflow: hidden is supposed to hide elements that are outside of their "parent's size".

---

> Somehow observed the same behavior in Firefox as well.

To be explicit, in my experience, Firefox, based on Gecko, does *not* have the same behavior as Chrome but Firefox Focus, based on WebKit, does have the same behavior as Chrome.

Comment 4 by e...@chromium.org, Oct 30 2017

Owner: ikilpatrick@chromium.org
Status: Assigned (was: Untriaged)
Ian, would you mind commenting on this?

Sign in to add a comment