Bug 191857

Summary: [iOS] Scrollbar size in iOS platforms
Product: WebKit Reporter: Manuel Rego Casasnovas <rego>
Component: Layout and RenderingAssignee: Manuel Rego Casasnovas <rego>
Status: NEW ---    
Severity: Normal CC: bfulgham, ews-watchlist, fred.wang, simon.fraser, zalan
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch for checking iOS EWS
none
Trying horizontalScrollbarIntrusion() as suggested by fwang
ews-watchlist: commit-queue-
Archive of layout-test-results from ews124 for ios-simulator-wk2 none

Description Manuel Rego Casasnovas 2018-11-20 03:14:03 PST
As discussed in bug #191656 it might be needed that scrollbarLogicalWidth() and scrollbarLogicalHeight() returns zero on iOS.

Some weird issues on iOS caused that the patch for #191656 got rollout, to make it pass all tests in iOS and iOS Simulator.
To fix it temporary we added a "#if !PLATFORM(IOS_FAMILY)" there.
Comment 1 Simon Fraser (smfr) 2018-11-20 17:13:10 PST
Does scrollbarIntrusion() do what you want?
Comment 2 Manuel Rego Casasnovas 2018-11-20 23:45:06 PST
Created attachment 355390 [details]
Patch for checking iOS EWS
Comment 3 Frédéric Wang (:fredw) 2018-11-20 23:58:51 PST
Comment on attachment 355390 [details]
Patch for checking iOS EWS

View in context: https://bugs.webkit.org/attachment.cgi?id=355390&action=review

> Source/WebCore/rendering/RenderGrid.cpp:1011
> +        borderAndPadding += layer()->scrollbarIntrusion().width();

I guess you can just use layer()->horizontalScrollbarIntrusion()?
Comment 4 Manuel Rego Casasnovas 2018-11-21 01:10:04 PST
Created attachment 355394 [details]
Trying horizontalScrollbarIntrusion() as suggested by fwang
Comment 5 Frédéric Wang (:fredw) 2018-11-21 05:52:30 PST
The tests seems to render fine for me when running directly in the Safari simulator, so I wonder whether it's something specific to the test runner.
Comment 6 EWS Watchlist 2018-11-21 06:43:55 PST
Comment on attachment 355394 [details]
Trying horizontalScrollbarIntrusion() as suggested by fwang

Attachment 355394 [details] did not pass ios-sim-ews (ios-simulator-wk2):
Output: https://webkit-queues.webkit.org/results/10098603

New failing tests:
imported/w3c/web-platform-tests/css/css-grid/grid-model/grid-container-scrollbar-001.html
Comment 7 EWS Watchlist 2018-11-21 06:43:57 PST
Created attachment 355409 [details]
Archive of layout-test-results from ews124 for ios-simulator-wk2

The attached test failures were seen while running run-webkit-tests on the ios-sim-ews.
Bot: ews124  Port: ios-simulator-wk2  Platform: Mac OS X 10.13.6