Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(245)

Issue 1383003002: [css-grid] Fix definite/indefinite size detection for abspos elements (Closed)

Created:
5 years, 2 months ago by Manuel Rego
Modified:
4 years, 8 months ago
CC:
chromium-reviews, jfernandez, szager+layoutwatch_chromium.org, zoltan1, svillar, blink-reviews-layout_chromium.org, pdr+renderingwatchlist_chromium.org, leviw+renderwatch, jchaffraix+rendering, blink-reviews, eae+blinkwatch
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[css-grid] Fix definite/indefinite size detection for abspos elements We were considering that any abspos element has a definite size, and that's not true. That's only true if the offset properties in that dimension (left and right or top and bottom) are non-auto. Fixed LayoutBox::hasDefiniteLogicalWidth|Height() to check this properly. This has been confirmed by the CSS WG in the following thread: https://lists.w3.org/Archives/Public/www-style/2015Nov/0074.html BUG=538513 TEST=fast/css-grid-layout/positioned-grid-container-percentage-tracks.html Committed: https://crrev.com/b75b9bdaa3ede6fe0230ae822885d6fb38ed514b Cr-Commit-Position: refs/heads/master@{#386045}

Patch Set 1 #

Total comments: 9

Patch Set 2 : New version #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+107 lines, -8 lines) Patch
A third_party/WebKit/LayoutTests/fast/css-grid-layout/positioned-grid-container-percentage-tracks.html View 1 1 chunk +103 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutBox.cpp View 1 2 chunks +4 lines, -8 lines 2 comments Download

Messages

Total messages: 23 (8 generated)
Manuel Rego
This is an alternative patch to CL: https://codereview.chromium.org/1081433005/
5 years, 2 months ago (2015-10-02 07:45:29 UTC) #2
svillar
Actually maybe we don't need these functions anymore. I've managed to cook a patch for ...
5 years, 2 months ago (2015-10-02 08:04:51 UTC) #3
mstensho (USE GERRIT)
https://codereview.chromium.org/1383003002/diff/1/third_party/WebKit/Source/core/layout/LayoutBox.cpp File third_party/WebKit/Source/core/layout/LayoutBox.cpp (right): https://codereview.chromium.org/1383003002/diff/1/third_party/WebKit/Source/core/layout/LayoutBox.cpp#newcode2404 third_party/WebKit/Source/core/layout/LayoutBox.cpp:2404: computeLogicalHeight(logicalHeight(), 0, computedValues); I don't think this is the ...
5 years, 2 months ago (2015-10-02 09:08:50 UTC) #4
cbiesinger
https://codereview.chromium.org/1383003002/diff/1/third_party/WebKit/Source/core/layout/LayoutBox.cpp File third_party/WebKit/Source/core/layout/LayoutBox.cpp (right): https://codereview.chromium.org/1383003002/diff/1/third_party/WebKit/Source/core/layout/LayoutBox.cpp#newcode2404 third_party/WebKit/Source/core/layout/LayoutBox.cpp:2404: computeLogicalHeight(logicalHeight(), 0, computedValues); On 2015/10/02 09:08:50, mstensho wrote: > ...
5 years, 2 months ago (2015-10-02 16:40:19 UTC) #5
mstensho (USE GERRIT)
Please continue working on this CL or close it.
5 years ago (2015-12-04 13:57:48 UTC) #6
svillar
My advice will be to fix hasDefiniteLogicalXXX to return the right value for abspos elements ...
5 years ago (2015-12-14 13:02:19 UTC) #7
Manuel Rego
Finally I found time to come back to this issue. Sorry for the long wait. ...
4 years, 8 months ago (2016-04-08 07:53:14 UTC) #12
mstensho (USE GERRIT)
No expectation file? And the bots are green?? :) I think you need to use ...
4 years, 8 months ago (2016-04-08 09:06:35 UTC) #13
Manuel Rego
On 2016/04/08 09:06:35, mstensho wrote: > No expectation file? And the bots are green?? :) ...
4 years, 8 months ago (2016-04-08 09:38:03 UTC) #14
mstensho (USE GERRIT)
On 2016/04/08 09:38:03, Manuel Rego wrote: > On 2016/04/08 09:06:35, mstensho wrote: > > No ...
4 years, 8 months ago (2016-04-08 09:48:47 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1383003002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1383003002/20001
4 years, 8 months ago (2016-04-08 10:31:06 UTC) #17
Manuel Rego
On 2016/04/08 09:48:47, mstensho wrote: > On 2016/04/08 09:38:03, Manuel Rego wrote: > > On ...
4 years, 8 months ago (2016-04-08 10:31:45 UTC) #18
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 8 months ago (2016-04-08 11:31:11 UTC) #20
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/b75b9bdaa3ede6fe0230ae822885d6fb38ed514b Cr-Commit-Position: refs/heads/master@{#386045}
4 years, 8 months ago (2016-04-08 11:32:29 UTC) #22
Manuel Rego
4 years, 7 months ago (2016-05-05 10:03:57 UTC) #23
Message was sent while issue was closed.
A revert of this CL (patchset #2 id:20001) has been created in
https://codereview.chromium.org/1954683002/ by rego@igalia.com.

The reason for reverting is: This is breaking how percentages work in
Flexbox and Grid compared to regular Blocks.

There're some discussion ongoing on the CSS WG to verify
the expected behavior, so we're reverting this for now
until we've a final resolution..

Powered by Google App Engine
This is Rietveld 408576698