Bug 93068 - Clearing display:none before visibility:hidden on a scroll region can cause content to be partially hidden
Summary: Clearing display:none before visibility:hidden on a scroll region can cause c...
Status: RESOLVED CONFIGURATION CHANGED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-02 23:13 PDT by linda167
Modified: 2022-07-13 10:39 PDT (History)
3 users (show)

See Also:


Attachments
Demonstrates the listview content being partially hidden after hiding then showing listview (72.39 KB, application/x-zip-compressed)
2012-08-02 23:13 PDT, linda167
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description linda167 2012-08-02 23:13:51 PDT
Created attachment 156264 [details]
Demonstrates the listview content being partially hidden after hiding then showing listview

See attached html page for the repro.

In our listview, we have logic to hide and show the listview. The listview is hidden by setting display:none, and visibility:hidden. The listview is then shown by first clearing display:none, then visibility:hidden. We require this order of setting these styles in order to support other features. After we do this, the listview content is partially hidden under the scrollbar for the listview. 

Issue repros if we set CSS in the following order:
1. display: none; visibility: hidden;
2. display: block
3. visibility: visible

Issue does NOT repro if we set CSS in the following order:
1. display: none; visibility: hidden;
3. visibility: visible
2. display: block

We cannot change the order we set the css for functional requirements.

This bug repros on Chrome on Windows, and Chrome & Safari on Mac and iOS devices.
Does not repro on latest versions of Firefox or IE
Comment 1 linda167 2012-08-07 18:58:33 PDT
Note: This also seems to be related to custom scrollbar styles we use for the listview, using -webkit-scrollbar.

When width and height are set using -webkit-scrollbar, then this bug repros, without -webkit-scrollbar, it doesn't repro.
Comment 2 Brent Fulgham 2022-07-13 10:39:40 PDT
Safari, Chrome, and Firefox all agree on rendering for this test case. I don't believe there is any remaining compatibility issue.