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

Issue 1827363003: :active state should stick while mouse button is pressed regardless of focus state (Closed)

Created:
4 years, 9 months ago by kochi
Modified:
4 years, 9 months ago
Reviewers:
tkent
CC:
blink-reviews, blink-reviews-dom_chromium.org, chromium-reviews, dglazkov+blink, eae+blinkwatch, rwlbuis, sof
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

:active state should stick while mouse button is pressed regardless of focus state For a css selector like 'input:active', it should match even after focus moves out of the element. WebKit used to clear :active flag at focus blur. The clearing code has been there since the KHTML era but looks irrelevant now. BUG=365308 TEST=layout test Committed: https://crrev.com/671b78468b2d2a3457f11dbbc5b3af23c8ad7bff Cr-Commit-Position: refs/heads/master@{#383268}

Patch Set 1 #

Patch Set 2 : add a test #

Patch Set 3 : revise test. #

Total comments: 2

Patch Set 4 : fix indentation (TAB) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+44 lines, -3 lines) Patch
A third_party/WebKit/LayoutTests/fast/css/active-pseudo-and-focus-move.html View 1 2 3 1 chunk +44 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Document.cpp View 1 1 chunk +0 lines, -3 lines 0 comments Download

Messages

Total messages: 22 (10 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1827363003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1827363003/20001
4 years, 9 months ago (2016-03-25 07:07:22 UTC) #5
kochi
PTAL
4 years, 9 months ago (2016-03-25 07:07:23 UTC) #6
tkent
> When a form element has focus and its associated label > is clicked, the ...
4 years, 9 months ago (2016-03-25 07:50:41 UTC) #7
kochi
On 2016/03/25 07:50:41, tkent wrote: > > When a form element has focus and its ...
4 years, 9 months ago (2016-03-25 08:14:52 UTC) #8
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-25 08:15:57 UTC) #10
kochi
As we talked offline, this issue is not specific to label and its associated element, ...
4 years, 9 months ago (2016-03-25 08:32:02 UTC) #12
tkent
lgtm https://codereview.chromium.org/1827363003/diff/40001/third_party/WebKit/LayoutTests/fast/css/active-pseudo-and-focus-move.html File third_party/WebKit/LayoutTests/fast/css/active-pseudo-and-focus-move.html (right): https://codereview.chromium.org/1827363003/diff/40001/third_party/WebKit/LayoutTests/fast/css/active-pseudo-and-focus-move.html#newcode14 third_party/WebKit/LayoutTests/fast/css/active-pseudo-and-focus-move.html:14: var i1 = document.querySelector('#i1'); indentation looks ugly.
4 years, 9 months ago (2016-03-25 08:33:13 UTC) #13
kochi
On 2016/03/25 08:32:02, kochi wrote: > The behavior is confirmed also on IE12 and Edge. ...
4 years, 9 months ago (2016-03-25 08:34:21 UTC) #14
kochi
Thanks for the review. https://codereview.chromium.org/1827363003/diff/40001/third_party/WebKit/LayoutTests/fast/css/active-pseudo-and-focus-move.html File third_party/WebKit/LayoutTests/fast/css/active-pseudo-and-focus-move.html (right): https://codereview.chromium.org/1827363003/diff/40001/third_party/WebKit/LayoutTests/fast/css/active-pseudo-and-focus-move.html#newcode14 third_party/WebKit/LayoutTests/fast/css/active-pseudo-and-focus-move.html:14: var i1 = document.querySelector('#i1'); On ...
4 years, 9 months ago (2016-03-25 08:43:51 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1827363003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1827363003/60001
4 years, 9 months ago (2016-03-25 09:13:37 UTC) #18
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 9 months ago (2016-03-25 10:20:54 UTC) #20
commit-bot: I haz the power
4 years, 9 months ago (2016-03-25 10:21:54 UTC) #22
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/671b78468b2d2a3457f11dbbc5b3af23c8ad7bff
Cr-Commit-Position: refs/heads/master@{#383268}

Powered by Google App Engine
This is Rietveld 408576698