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

Issue 69143002: Guard the rework of documentElement|body.scrollTop/Left under a runtime flag (Closed)

Created:
7 years, 1 month ago by tonikitoo_
Modified:
6 years, 5 months ago
CC:
blink-reviews, dglazkov+blink, eae+blinkwatch, adamk+blink_chromium.org, Dan Beam
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Guard the rework of documentElement|body.scrollTop/Left under a runtime flag Blink is now (Nov 11, 2013) at a middle state of cross Web engine compatibility with regards to documentElement and body scrollLeft/Top properties' behavior [1]: 1. documentElement works as per the spec. 2. body does not, and UseCounts the "improper" usage, keeping the existing WebKit/Blink quirk behavior. Given the amount of occurences that rely on the mutually exclusive behavior of such properties [2], it is preferable to restore the original quirk behavior and work on the new behavior under a runtime flag: ScrollTopLeftInterop. In short, as Blink is now, websites that try to work around WebKit/Blink bug by doing the below math are broken. scrollOffset = documentElement.scrollTop + body.scrollTop [2] [1] http://dev.w3.org/csswg/cssom-view/#dom-element-scrolltop [2] http://bit.ly/17jiCMJ BUG=314700 R=eseidel Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=162166

Patch Set 1 #

Total comments: 1

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+60 lines, -52 lines) Patch
M LayoutTests/fast/dom/Element/scrollTop-scrollLeft-strict-quirks-modes-expected.txt View 2 chunks +2 lines, -4 lines 0 comments Download
M LayoutTests/jquery/offset-expected.txt View 1 1 chunk +0 lines, -2 lines 0 comments Download
M Source/core/dom/Element.cpp View 1 7 chunks +28 lines, -26 lines 0 comments Download
M Source/core/html/HTMLBodyElement.cpp View 1 4 chunks +25 lines, -20 lines 0 comments Download
M Source/platform/RuntimeEnabledFeatures.in View 1 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
tonikitoo_
7 years, 1 month ago (2013-11-11 17:38:26 UTC) #1
eseidel
It sounds like you want this on for "test" if anything. Test will make it ...
7 years, 1 month ago (2013-11-11 18:29:57 UTC) #2
eseidel
I'm OK with it being experimental, or even stable (since that's what it was before ...
7 years, 1 month ago (2013-11-11 18:45:07 UTC) #3
tonikitoo_
On 2013/11/11 18:45:07, eseidel wrote: > I'm OK with it being experimental, or even stable ...
7 years, 1 month ago (2013-11-11 19:00:12 UTC) #4
tonikitoo_
> - ToT: if this patch is ok'ed to go to trunk, it addresses the ...
7 years, 1 month ago (2013-11-11 19:01:57 UTC) #5
eseidel
lgtm OK. Lets make sure to fix the branches ASAP. Do we feel like we ...
7 years, 1 month ago (2013-11-11 19:02:30 UTC) #6
tonikitoo_
On 2013/11/11 19:02:30, eseidel wrote: > lgtm Thanks. > OK. Lets make sure to fix ...
7 years, 1 month ago (2013-11-11 19:42:12 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/a1.gomes@sisa.samsung.com/69143002/110001
7 years, 1 month ago (2013-11-17 22:50:14 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/a1.gomes@sisa.samsung.com/69143002/240001
7 years, 1 month ago (2013-11-17 23:30:47 UTC) #9
commit-bot: I haz the power
7 years, 1 month ago (2013-11-18 00:49:30 UTC) #10
Message was sent while issue was closed.
Change committed as 162166

Powered by Google App Engine
This is Rietveld 408576698