Bug 172590

Summary: [css-grid] Margin wrong applied when stretching an orthogonal item in fixed size track
Product: WebKit Reporter: Manuel Rego Casasnovas <rego>
Component: Layout and RenderingAssignee: Javier Fernandez <jfernandez>
Status: RESOLVED FIXED    
Severity: Normal CC: bfulgham, commit-queue, jfernandez, rego, simon.fraser, svillar, zalan
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.chromium.org/p/chromium/issues/detail?id=725903
Bug Depends on:    
Bug Blocks: 60731    
Attachments:
Description Flags
Example to reproduce the issue
none
Example to reproduce the issue
none
Current output
none
Patch
none
Patch none

Description Manuel Rego Casasnovas 2017-05-25 07:50:58 PDT
Created attachment 311218 [details]
Example to reproduce the issue

Margin is wrongly computed when applied to an orthogonal item inside a fixed size track.
Comment 1 Manuel Rego Casasnovas 2017-05-25 07:51:51 PDT
Created attachment 311219 [details]
Example to reproduce the issue
Comment 2 Manuel Rego Casasnovas 2017-05-25 07:52:27 PDT
Created attachment 311220 [details]
Current output
Comment 3 Javier Fernandez 2017-05-26 02:33:52 PDT
This issue doesn't look like the same reported in Blink. 
In this case, the margins are not computed properly even avoiding repeating the grid layout logic, which was the cause of the Blink's issue.
Comment 4 Javier Fernandez 2017-06-01 15:03:01 PDT
Created attachment 311763 [details]
Patch
Comment 5 Sergio Villar Senin 2017-06-02 00:48:14 PDT
Comment on attachment 311763 [details]
Patch

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

> Source/WebCore/ChangeLog:11
> +        The issue this CL fixes is only reproducible when the grid layout logic

CL is not common in WebKit, use patch/change...
Comment 6 Javier Fernandez 2017-06-02 01:28:18 PDT
Created attachment 311808 [details]
Patch
Comment 7 WebKit Commit Bot 2017-06-02 02:08:19 PDT
Comment on attachment 311808 [details]
Patch

Clearing flags on attachment: 311808

Committed r217705: <http://trac.webkit.org/changeset/217705>
Comment 8 WebKit Commit Bot 2017-06-02 02:08:21 PDT
All reviewed patches have been landed.  Closing bug.