WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
141435
[CSS Grid Layout] Columns set in percentages collapse to auto width
https://bugs.webkit.org/show_bug.cgi?id=141435
Summary
[CSS Grid Layout] Columns set in percentages collapse to auto width
Manuel Rego Casasnovas
Reported
2015-02-10 09:12:00 PST
A very simple example where you use percentages to set columns and the width of the grid container is auto is not working as expected: <div style="display: -webkit-grid; -webkit-grid-template-columns: 50% 50%;"> <div>item 1</div> <div>item 2</div> </div> It's being interpreted as "auto auto" which is wrong, it should use the 50% of the width of the grid. As despite of being "auto" it doesn't mean it's indefinite. This was discussed in the CSS WG mailing list, more details in the following thread:
http://lists.w3.org/Archives/Public/www-style/2014Aug/0364.html
This has been already fixed in Blink:
http://code.google.com/p/chromium/issues/detail?id=407089
Attachments
Patch
(14.89 KB, patch)
2015-02-10 09:17 PST
,
Manuel Rego Casasnovas
no flags
Details
Formatted Diff
Diff
Patch
(14.80 KB, patch)
2015-02-10 09:19 PST
,
Manuel Rego Casasnovas
no flags
Details
Formatted Diff
Diff
Patch
(27.43 KB, patch)
2015-03-13 02:48 PDT
,
Manuel Rego Casasnovas
no flags
Details
Formatted Diff
Diff
Patch for landing
(27.02 KB, patch)
2015-04-13 13:53 PDT
,
Manuel Rego Casasnovas
no flags
Details
Formatted Diff
Diff
Show Obsolete
(3)
View All
Add attachment
proposed patch, testcase, etc.
Manuel Rego Casasnovas
Comment 1
2015-02-10 09:17:20 PST
Created
attachment 246329
[details]
Patch
Manuel Rego Casasnovas
Comment 2
2015-02-10 09:19:14 PST
Created
attachment 246330
[details]
Patch
Sergio Villar Senin
Comment 3
2015-02-11 01:11:40 PST
Comment on
attachment 246330
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=246330&action=review
> Source/WebCore/rendering/RenderBox.cpp:4453 > + return true;
Perhaps we could merge these three in a single condition.
Manuel Rego Casasnovas
Comment 4
2015-03-13 02:48:36 PDT
Created
attachment 248582
[details]
Patch
Manuel Rego Casasnovas
Comment 5
2015-03-13 02:50:10 PDT
New version of the patch merging several fixes from Blink: *
https://codereview.chromium.org/906323003
*
https://codereview.chromium.org/914993003
*
https://codereview.chromium.org/948833002
*
https://codereview.chromium.org/946553003
Manuel Rego Casasnovas
Comment 6
2015-03-30 13:35:56 PDT
Adding more reviewers on CC from suggest-reviewers. Please, could someone take a look? Thanks!
Dave Hyatt
Comment 7
2015-04-13 13:35:49 PDT
Comment on
attachment 248582
[details]
Patch r=me
WebKit Commit Bot
Comment 8
2015-04-13 13:45:50 PDT
Comment on
attachment 248582
[details]
Patch Rejecting
attachment 248582
[details]
from commit-queue. Failed to run "['/Volumes/Data/EWS/WebKit/Tools/Scripts/webkit-patch', '--status-host=webkit-queues.appspot.com', '--bot-id=webkit-cq-02', 'validate-changelog', '--check-oops', '--non-interactive', 248582, '--port=mac']" exit_code: 1 cwd: /Volumes/Data/EWS/WebKit ChangeLog entry in LayoutTests/ChangeLog contains OOPS!. Full output:
http://webkit-queues.appspot.com/results/5540314462814208
Manuel Rego Casasnovas
Comment 9
2015-04-13 13:53:24 PDT
Created
attachment 250673
[details]
Patch for landing
WebKit Commit Bot
Comment 10
2015-04-13 22:00:10 PDT
Comment on
attachment 250673
[details]
Patch for landing Clearing flags on attachment: 250673 Committed
r182780
: <
http://trac.webkit.org/changeset/182780
>
WebKit Commit Bot
Comment 11
2015-04-13 22:00:15 PDT
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug