RESOLVED FIXED 79151
Implement limited parsing of -webkit-grid-column and -webkit-grid-row
https://bugs.webkit.org/show_bug.cgi?id=79151
Summary Implement limited parsing of -webkit-grid-column and -webkit-grid-row
Julien Chaffraix
Reported 2012-02-21 14:46:42 PST
http://dev.w3.org/csswg/css3-grid-align/#grid-row-property http://dev.w3.org/csswg/css3-grid-align/#grid-column-property This is a first step into properly parsing them. We limit the syntax to <integer> | 'auto' to have a manageable size for the change. Note: there has been some proposal about renaming them but for now no one backed this change so we will likely have to rename them down the road.
Attachments
Early patch to discuss the naming. (26.75 KB, patch)
2012-02-21 14:59 PST, Julien Chaffraix
no flags
Fully working patch. (34.95 KB, patch)
2012-02-23 12:16 PST, Julien Chaffraix
no flags
Updated patch: fixed the Mac build. (35.35 KB, patch)
2012-02-23 18:17 PST, Julien Chaffraix
no flags
Rebaselined XCode file. (35.49 KB, patch)
2012-02-24 12:47 PST, Julien Chaffraix
ojan: review+
Julien Chaffraix
Comment 1 2012-02-21 14:59:55 PST
Created attachment 128050 [details] Early patch to discuss the naming.
Tony Chang
Comment 2 2012-02-22 13:43:11 PST
Comment on attachment 128050 [details] Early patch to discuss the naming. View in context: https://bugs.webkit.org/attachment.cgi?id=128050&action=review The naming seems fine to me. > Source/WebCore/ChangeLog:12 > + -webkit-{row|column} := <integer> | 'auto' -webkit-grid-{row|column}
Julien Chaffraix
Comment 3 2012-02-23 12:16:51 PST
Created attachment 128530 [details] Fully working patch.
Julien Chaffraix
Comment 4 2012-02-23 15:47:43 PST
Comment on attachment 128530 [details] Fully working patch. View in context: https://bugs.webkit.org/attachment.cgi?id=128530&action=review > Source/WebCore/css/CSSComputedStyleDeclaration.cpp:920 > +static PassRefPtr<CSSValue> valueForGridPosition(const Length& position, const RenderStyle* style, CSSValuePool* cssValuePool) Looks like the unused parameter |style| is making the mac EWS sad. I will update the patch to make them happy.
Julien Chaffraix
Comment 5 2012-02-23 18:17:44 PST
Created attachment 128625 [details] Updated patch: fixed the Mac build.
Julien Chaffraix
Comment 6 2012-02-24 12:47:23 PST
Created attachment 128786 [details] Rebaselined XCode file.
Ojan Vafai
Comment 7 2012-02-24 14:14:31 PST
Comment on attachment 128786 [details] Rebaselined XCode file. View in context: https://bugs.webkit.org/attachment.cgi?id=128786&action=review Please merge the JS file into the html test before committing. > LayoutTests/fast/css-grid-layout/grid-item-column-row-get-set.html:26 > +<script src="resources/grid-item-column-row-get-set.js"></script> I'd rather you inline the JS here. Having multiple files for a test is a pain.
Julien Chaffraix
Comment 8 2012-02-24 15:25:06 PST
Note You need to log in before you can comment on or make changes to this bug.