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

Issue 692043 link

Starred by 2 users

Issue metadata

Status: Duplicate
Merged: issue 692263
Owner: ----
Closed: Feb 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 2
Type: Compat



Sign in to add a comment

'position: sticky': add 1px extra top margin

Reported by jsa...@besport.com, Feb 14 2017

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36

Example URL:
http://ocsigen.org/ocsigen-start/demo/demo-carousel2

Steps to reproduce the problem:
1. Goto http://ocsigen.org/ocsigen-start/demo/demo-carousel2
2. Make sure that you can scroll enough by redimensioning window or enable mobile view in inspector
3. Scroll down

What is the expected behavior?
Tab bar should be positioned right below the top bar.

What went wrong?
The tabs menu have a 1px gap at the top. You can see text below when scrolling the page.

Note: If you change the font-size of the body from 14px to 15px, it works. 16px and 17px reintroduce the bug and 18px is okay...

According to the inspector and the console, element have the right size / position:

The tab element reports:
$0.getBoundingClientRect()
ClientRect {top: 50, right: 320, bottom: 100, left: 0, width: 320…}

The top bar element reports:
$0.getBoundingClientRect()
ClientRect {top: 0, right: 320, bottom: 50, left: 0, width: 320…}

Does it occur on multiple sites: N/A

Is it a problem with a plugin? N/A 

Did this work before? Yes 

Does this work in other browsers? Yes

Chrome version: 56.0.2924.87  Channel: stable
OS Version: OS X 10.12.3
Flash Version: Shockwave Flash 24.0 r0

Worked in version 55

 
Labels: Needs-Bisect Needs-Triage-M56
Cc: kavvaru@chromium.org
Components: Blink>CSS
Labels: Needs-Feedback
Unable to reproduce the issue on windows 7, Mac 10.12.3 using chrome version 56.0.2924.87 and version 55.0.2883.95 with the below steps

1.Go to URL http://ocsigen.org/ocsigen-start/demo/demo-carousel2
2.Enable mobile view from dev tools
3.Scroll the page
4.Not observed any gap between tab bar and tabs menu

Please find the attached screen cast and confirm if anything missed here.

Thanks,
692043.mp4
2.0 MB View Download

Comment 3 by jsa...@besport.com, Feb 15 2017

You can not scroll enough with these settings.

So you can not see the text behind the nav tab.

Please try with the iphone 5 view or see screenshots attached.
Screen Shot 2017-02-15 at 09.37.12.png
145 KB View Download
Screen Shot 2017-02-15 at 09.37.25.png
170 KB View Download
Unable to reproduce the issue on Mac 10.12.3 using chrome version 56.0.2924.87.
Please find the attached screen shot for the same.

Please confirm is this issue specific to touch screen?

Thanks,

692043.png
224 KB View Download

Comment 5 by jsa...@besport.com, Feb 16 2017

No it's not. It is just that you scrolled in a way that what is shown by the 1px gap is white, and invisible. See attachement.

- First screenshot (xxxx08.43.07) is just like your screenshot.
- Second (xxxx08.43.19) show the problem by scrolling up a little bit so gap is not aligned anymore with white background
- Thirs one (xxxxx8.45.06) (making sticky element's background red) clearly show the problem.
Screen Shot 2017-02-16 at 08.43.07.png
156 KB View Download
Screen Shot 2017-02-16 at 08.43.19.png
154 KB View Download
Screen Shot 2017-02-16 at 08.45.06.png
168 KB View Download
Labels: -Needs-Feedback -Needs-Bisect -Needs-Triage-M56
Mergedinto: 692263
Status: Duplicate (was: Unconfirmed)
Issue similar to the  bug 692263 .Hence merging this into 692263.

Please feel free to undupe if not similar.

Thanks,

Comment 7 by jsa...@besport.com, Jul 19 2017

The same problem is still present while 692263 has been fixed.

PS: I do not know how to undupe, but problem does not seem to be the same.

Sign in to add a comment