Bug 213739 - [css-flexbox] Don't include scrollbar extents when computing sizes for percentage resolution
Summary: [css-flexbox] Don't include scrollbar extents when computing sizes for percen...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Sergio Villar Senin
URL:
Keywords: InRadar
Depends on: 213809
Blocks:
  Show dependency treegraph
 
Reported: 2020-06-29 09:44 PDT by Sergio Villar Senin
Modified: 2020-07-01 03:45 PDT (History)
9 users (show)

See Also:


Attachments
Patch (4.81 KB, patch)
2020-06-29 09:47 PDT, Sergio Villar Senin
jfernandez: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sergio Villar Senin 2020-06-29 09:44:25 PDT
[css-flexbox] Don't include scrollbar extents when computing sizes for percentage resolution
Comment 1 Sergio Villar Senin 2020-06-29 09:47:27 PDT
Created attachment 403075 [details]
Patch
Comment 2 Javier Fernandez 2020-06-29 14:33:43 PDT
Please, make sure the patch is not the cause of some of the flakiness detected by the mac2 bots: 

fast/scrolling/mac/scroll-snapping-in-progress.html
Comment 3 Manuel Rego Casasnovas 2020-06-30 01:05:02 PDT
Comment on attachment 403075 [details]
Patch

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

BTW, about the confusion regarding storing something different than what its name says, in Chromium the solution for that was https://chromium-review.googlesource.com/c/chromium/src/+/1024171/, maybe we should try to port that or something similar into WebKit.

> LayoutTests/ChangeLog:8
> +        * TestExpectations: Unskipped percentage-heights-004.html.

The test is only for heights, wouldn't we need a test for widths too? You're changing both things in the code in I'm not getting it wrong.
Comment 4 Sergio Villar Senin 2020-06-30 01:22:26 PDT
(In reply to Javier Fernandez from comment #2)
> Please, make sure the patch is not the cause of some of the flakiness
> detected by the mac2 bots: 
> 
> fast/scrolling/mac/scroll-snapping-in-progress.html

That's failing without the patch as well.
Comment 5 Sergio Villar Senin 2020-06-30 10:23:05 PDT
(In reply to Manuel Rego Casasnovas from comment #3)
> Comment on attachment 403075 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=403075&action=review
> 
> BTW, about the confusion regarding storing something different than what its
> name says, in Chromium the solution for that was
> https://chromium-review.googlesource.com/c/chromium/src/+/1024171/, maybe we
> should try to port that or something similar into WebKit.
> 
> > LayoutTests/ChangeLog:8
> > +        * TestExpectations: Unskipped percentage-heights-004.html.
> 
> The test is only for heights, wouldn't we need a test for widths too? You're
> changing both things in the code in I'm not getting it wrong.

Now that you mention it, the width paths are not reachable. I'll post a prequel patch to remove them.
Comment 6 Sergio Villar Senin 2020-07-01 03:41:11 PDT
Committed r263794: <https://trac.webkit.org/changeset/263794>
Comment 7 Radar WebKit Bug Importer 2020-07-01 03:42:14 PDT
<rdar://problem/64980642>
Comment 8 Sergio Villar Senin 2020-07-01 03:45:02 PDT
(In reply to Manuel Rego Casasnovas from comment #3)
> Comment on attachment 403075 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=403075&action=review
> 
> BTW, about the confusion regarding storing something different than what its
> name says, in Chromium the solution for that was
> https://chromium-review.googlesource.com/c/chromium/src/+/1024171/, maybe we
> should try to port that or something similar into WebKit.
> 
> > LayoutTests/ChangeLog:8
> > +        * TestExpectations: Unskipped percentage-heights-004.html.
> 
> The test is only for heights, wouldn't we need a test for widths too? You're
> changing both things in the code in I'm not getting it wrong.

After landing bug 213809 there is no need to test widths as those code paths were not reachable and thus they're removed.