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

Issue 2752623002: Return '' for overflow if overflow-x and overflow-y are different. (Closed)

Created:
3 years, 9 months ago by shend
Modified:
3 years, 8 months ago
Reviewers:
meade_UTC10, nainar
CC:
darktears, apavlov+blink_chromium.org, blink-reviews, blink-reviews-css, blink-reviews-style_chromium.org, chromium-reviews, dglazkov+blink, rwlbuis
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Return '' for overflow if overflow-x and overflow-y are different. According to the CSSOM spec [1], when overflow-x and overflow-y are different, the computed value of overflow should be the empty string since it cannot be expressed in the grammar (step 1.2.). However, we currently return the max of overflow-x and overflow-y in terms of their enum values, which does not follow the spec. Firefox handles this issue correctly. This patch fixes this issue by return an empty string if the two overflows are different. [1] https://drafts.csswg.org/cssom/#serialize-a-css-value [2] https://github.com/w3c/csswg-drafts/issues/1100 BUG=701235 Review-Url: https://codereview.chromium.org/2752623002 Cr-Commit-Position: refs/heads/master@{#461352} Committed: https://chromium.googlesource.com/chromium/src/+/02c25323de5c3f16bb47d5dc6fc6c7b9a939b784

Patch Set 1 #

Total comments: 2

Patch Set 2 : Address comments #

Total comments: 2

Patch Set 3 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -2 lines) Patch
A third_party/WebKit/LayoutTests/fast/css/different-overflow-x-and-y.html View 1 2 1 chunk +10 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp View 1 2 1 chunk +3 lines, -2 lines 0 comments Download

Messages

Total messages: 28 (19 generated)
shend
Hi Naina, PTAL :)
3 years, 9 months ago (2017-03-14 04:33:03 UTC) #2
nainar
lgtm https://codereview.chromium.org/2752623002/diff/1/third_party/WebKit/LayoutTests/fast/css/different-overflow-x-and-y.html File third_party/WebKit/LayoutTests/fast/css/different-overflow-x-and-y.html (right): https://codereview.chromium.org/2752623002/diff/1/third_party/WebKit/LayoutTests/fast/css/different-overflow-x-and-y.html#newcode9 third_party/WebKit/LayoutTests/fast/css/different-overflow-x-and-y.html:9: }, 'Test different overflow x and y returns ...
3 years, 9 months ago (2017-03-14 04:49:16 UTC) #5
shend
Hi Eddy, PTAL https://codereview.chromium.org/2752623002/diff/1/third_party/WebKit/LayoutTests/fast/css/different-overflow-x-and-y.html File third_party/WebKit/LayoutTests/fast/css/different-overflow-x-and-y.html (right): https://codereview.chromium.org/2752623002/diff/1/third_party/WebKit/LayoutTests/fast/css/different-overflow-x-and-y.html#newcode9 third_party/WebKit/LayoutTests/fast/css/different-overflow-x-and-y.html:9: }, 'Test different overflow x and ...
3 years, 9 months ago (2017-03-16 00:40:59 UTC) #11
meade_UTC10
This seems maybe ok, but I'd like to double check that changing visible behaviour like ...
3 years, 9 months ago (2017-03-17 06:37:56 UTC) #14
shans
On 2017/03/17 at 06:37:56, meade wrote: > This seems maybe ok, but I'd like to ...
3 years, 9 months ago (2017-03-20 07:01:37 UTC) #15
meade_UTC10
lgtm I'm not that concerned if you think it's low risk shane :) Thanks for ...
3 years, 8 months ago (2017-03-29 22:49:00 UTC) #16
shend
Thanks! https://codereview.chromium.org/2752623002/diff/20001/third_party/WebKit/LayoutTests/fast/css/different-overflow-x-and-y.html File third_party/WebKit/LayoutTests/fast/css/different-overflow-x-and-y.html (right): https://codereview.chromium.org/2752623002/diff/20001/third_party/WebKit/LayoutTests/fast/css/different-overflow-x-and-y.html#newcode2 third_party/WebKit/LayoutTests/fast/css/different-overflow-x-and-y.html:2: <div id="target" style="overflow-x: hidden; overflow-y: scroll"></div> On 2017/03/29 ...
3 years, 8 months ago (2017-03-29 23:59:29 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2752623002/40001
3 years, 8 months ago (2017-04-02 22:28:59 UTC) #25
commit-bot: I haz the power
3 years, 8 months ago (2017-04-03 00:21:45 UTC) #28
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/02c25323de5c3f16bb47d5dc6fc6...

Powered by Google App Engine
This is Rietveld 408576698