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

Issue 1988813002: getComputedStyle should handle over-constrained properties. (Closed)

Created:
4 years, 7 months ago by Deokjin Kim
Modified:
4 years, 7 months ago
CC:
chromium-reviews, blink-reviews-style_chromium.org, blink-reviews-css, dglazkov+blink, apavlov+blink_chromium.org, darktears, blink-reviews, rwlbuis
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

getComputedStyle should handle over-constrained properties. If neither 'left' nor 'right' is 'auto', the position is over-constrained, and one of them has to be ignored. If 'direction' property of the containing block is 'ltr', the value of 'left' wins and 'right' becomes -'left'. If 'direction' of the containing block is 'rtl', 'right' wins and 'left' is ignored. Detail is described by https://www.w3.org/TR/2011/REC-CSS2-20110607/visuren.html#relative-positioning BUG=601118 Committed: https://crrev.com/c8291dea8bfa84ab9a3220fb9f57eb059e913a05 Cr-Commit-Position: refs/heads/master@{#394780}

Patch Set 1 #

Patch Set 2 : Update test case and commit message #

Patch Set 3 : Update commit message #

Patch Set 4 : Add test case #

Total comments: 4

Patch Set 5 : Change from offset to opposite #

Patch Set 6 : Add 1 more test case #

Patch Set 7 : Update test case's expected file #

Messages

Total messages: 21 (9 generated)
Deokjin Kim
PTAL. Thank you in advance.
4 years, 7 months ago (2016-05-18 12:27:29 UTC) #4
eae
Tim would be a better reviewer for this.
4 years, 7 months ago (2016-05-18 17:49:40 UTC) #6
rune
https://codereview.chromium.org/1988813002/diff/40002/third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp File third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp (right): https://codereview.chromium.org/1988813002/diff/40002/third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp#newcode251 third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp:251: if (!offset.isAuto() && layoutObject->isInFlowPositioned()) { offset is not auto ...
4 years, 7 months ago (2016-05-18 21:41:08 UTC) #7
Deokjin Kim
I changed "if" statement. Check whether opposite is auto, not offset. Would you please review ...
4 years, 7 months ago (2016-05-18 23:29:55 UTC) #8
mstensho (USE GERRIT)
https://codereview.chromium.org/1988813002/diff/40002/third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp File third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp (right): https://codereview.chromium.org/1988813002/diff/40002/third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp#newcode251 third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp:251: if (!offset.isAuto() && layoutObject->isInFlowPositioned()) { On 2016/05/18 23:29:55, Deokjin ...
4 years, 7 months ago (2016-05-19 05:57:52 UTC) #9
Deokjin Kim
I added 1 more test case. Would you please review this CL? Thank you~ https://codereview.chromium.org/1988813002/diff/40002/third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp ...
4 years, 7 months ago (2016-05-19 12:57:24 UTC) #10
rune
lgtm
4 years, 7 months ago (2016-05-19 13:08:24 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1988813002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1988813002/80001
4 years, 7 months ago (2016-05-19 13:18:13 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1988813002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1988813002/100001
4 years, 7 months ago (2016-05-19 14:45:32 UTC) #16
commit-bot: I haz the power
Committed patchset #7 (id:100001)
4 years, 7 months ago (2016-05-19 15:52:21 UTC) #18
commit-bot: I haz the power
Patchset 7 (id:??) landed as https://crrev.com/c8291dea8bfa84ab9a3220fb9f57eb059e913a05 Cr-Commit-Position: refs/heads/master@{#394780}
4 years, 7 months ago (2016-05-19 15:53:41 UTC) #20
Deokjin Kim
4 years, 6 months ago (2016-05-27 10:57:14 UTC) #21
Message was sent while issue was closed.
A revert of this CL (patchset #7 id:100001) has been created in
https://codereview.chromium.org/2016913003/ by deokjin81.kim@samsung.com.

The reason for reverting is: Other vendors didn't implement this yet. And work
with the others to either get all to fix or to change the spec.

BUG=614198.

Powered by Google App Engine
This is Rietveld 408576698