Bug 149890

Summary: [CSS Grid Layout] Fix grid-{row, column, area} shorthand CSSOM serialization
Product: WebKit Reporter: Javier Fernandez <jfernandez>
Component: Layout and RenderingAssignee: Javier Fernandez <jfernandez>
Status: NEW ---    
Severity: Normal CC: ahmad.saleem792, clopez, darin, jfernandez, rego, simon.fraser, svillar, zalan
Priority: P2 Keywords: BlinkMergeCandidate
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=204506
Bug Depends on:    
Bug Blocks: 149891    
Attachments:
Description Flags
Patch svillar: review-

Description Javier Fernandez 2015-10-07 13:16:05 PDT
The grid-row, grid-column and grid-area shorthands must use slash instead of whitespace as separator.
Comment 1 Javier Fernandez 2015-10-07 13:29:12 PDT
Fixing this bug would require to merge http://crrev.com/1132753002 patch.
Comment 2 Javier Fernandez 2015-10-07 13:37:54 PDT
Created attachment 262632 [details]
Patch
Comment 3 Sergio Villar Senin 2015-10-08 05:08:57 PDT
Comment on attachment 262632 [details]
Patch

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

> Source/WebCore/css/CSSPropertyNames.in:493
> +-webkit-grid-area [Longhands=-webkit-grid-row-start|-webkit-grid-column-start|-webkit-grid-row-end|-webkit-grid-column-end]

Wow this is bad. This means that we're expanding incorrectly the shorthand and that we have no tests to verify that. Please use a different bug to upload this change with its corresponding test.
Comment 4 Carlos Alberto Lopez Perez 2020-03-30 12:02:44 PDT
I think this is causing failures on the WPT test https://wpt.live/css/css-grid/parsing/grid-area-valid.html
Comment 5 Ahmad Saleem 2022-09-29 00:43:09 PDT
(In reply to Carlos Alberto Lopez Perez from comment #4)
> I think this is causing failures on the WPT test
> https://wpt.live/css/css-grid/parsing/grid-area-valid.html

In this above test case:

Safari 16 -> 24 Pass and 32 Fail
Safari TP 154 -> 24 Pass and 32 Fail
Chrome Canary 108 -> 24 Pass and 32 Fail
Firefox Nightly 107 -> 56 Pass