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

Issue 2509593002: Implement ::placeholder CSS selector. (Closed)

Created:
4 years, 1 month ago by tkent
Modified:
4 years, 1 month ago
Reviewers:
kochi, rune
CC:
darktears, apavlov+blink_chromium.org, blink-reviews, blink-reviews-css, chromium-reviews, dglazkov+blink, rwlbuis
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Implement ::placeholder CSS selector. This CL adds ::placeholder pseudo element selector which is independent from ::-webkit-input-placeholder. This CL won't change any behavior of ::-webkit-input-placeholder, and an internal placeholder element matches to both of selectors. BUG=623345 Committed: https://crrev.com/573cef7f96c99540bea732d3425f6fbc8938174f Cr-Commit-Position: refs/heads/master@{#433585}

Patch Set 1 #

Total comments: 3

Patch Set 2 : Introduce PseudoType::PseudoPlaceholder #

Total comments: 7

Patch Set 3 : Test fix, etc. #

Total comments: 4

Patch Set 4 : <!DOCTYPE html> #

Unified diffs Side-by-side diffs Delta from patch set Stats (+265 lines, -592 lines) Patch
A third_party/WebKit/LayoutTests/fast/css/pseudo-placeholder.html View 1 2 1 chunk +30 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/forms/text/placeholder-pseudo-style.html View 1 2 3 1 chunk +44 lines, -3 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/forms/text/placeholder-pseudo-style-expected.html View 1 2 3 1 chunk +57 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/forms/textarea/textarea-placeholder-pseudo-style.html View 1 2 3 1 chunk +49 lines, -3 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/forms/textarea/textarea-placeholder-pseudo-style-expected.html View 1 2 3 1 chunk +57 lines, -0 lines 0 comments Download
D third_party/WebKit/LayoutTests/platform/android/fast/forms/text/placeholder-pseudo-style-expected.png View 1 2 Binary file 0 comments Download
D third_party/WebKit/LayoutTests/platform/android/fast/forms/text/placeholder-pseudo-style-expected.txt View 1 2 1 chunk +0 lines, -66 lines 0 comments Download
D third_party/WebKit/LayoutTests/platform/linux/fast/forms/text/placeholder-pseudo-style-expected.png View 1 2 Binary file 0 comments Download
D third_party/WebKit/LayoutTests/platform/linux/fast/forms/text/placeholder-pseudo-style-expected.txt View 1 2 1 chunk +0 lines, -65 lines 0 comments Download
D third_party/WebKit/LayoutTests/platform/linux/fast/forms/textarea/textarea-placeholder-pseudo-style-expected.png View 1 2 Binary file 0 comments Download
D third_party/WebKit/LayoutTests/platform/linux/fast/forms/textarea/textarea-placeholder-pseudo-style-expected.txt View 1 2 1 chunk +0 lines, -39 lines 0 comments Download
D third_party/WebKit/LayoutTests/platform/mac-mac10.10/fast/forms/text/placeholder-pseudo-style-expected.png View 1 2 Binary file 0 comments Download
D third_party/WebKit/LayoutTests/platform/mac-mac10.10/fast/forms/text/placeholder-pseudo-style-expected.txt View 1 2 1 chunk +0 lines, -65 lines 0 comments Download
D third_party/WebKit/LayoutTests/platform/mac-mac10.10/fast/forms/textarea/textarea-placeholder-pseudo-style-expected.png View 1 2 Binary file 0 comments Download
D third_party/WebKit/LayoutTests/platform/mac-mac10.10/fast/forms/textarea/textarea-placeholder-pseudo-style-expected.txt View 1 2 1 chunk +0 lines, -39 lines 0 comments Download
D third_party/WebKit/LayoutTests/platform/mac-mac10.9/fast/forms/text/placeholder-pseudo-style-expected.png View 1 2 Binary file 0 comments Download
D third_party/WebKit/LayoutTests/platform/mac-mac10.9/fast/forms/text/placeholder-pseudo-style-expected.txt View 1 2 1 chunk +0 lines, -65 lines 0 comments Download
D third_party/WebKit/LayoutTests/platform/mac-mac10.9/fast/forms/textarea/textarea-placeholder-pseudo-style-expected.png View 1 2 Binary file 0 comments Download
D third_party/WebKit/LayoutTests/platform/mac-mac10.9/fast/forms/textarea/textarea-placeholder-pseudo-style-expected.txt View 1 2 1 chunk +0 lines, -39 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac/fast/forms/text/placeholder-pseudo-style-expected.png View 1 2 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac/fast/forms/text/placeholder-pseudo-style-expected.txt View 1 2 1 chunk +0 lines, -65 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac/fast/forms/textarea/textarea-placeholder-pseudo-style-expected.png View 1 2 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac/fast/forms/textarea/textarea-placeholder-pseudo-style-expected.txt View 1 2 1 chunk +0 lines, -39 lines 0 comments Download
D third_party/WebKit/LayoutTests/platform/win/fast/forms/text/placeholder-pseudo-style-expected.png View 1 2 Binary file 0 comments Download
D third_party/WebKit/LayoutTests/platform/win/fast/forms/text/placeholder-pseudo-style-expected.txt View 1 2 1 chunk +0 lines, -65 lines 0 comments Download
D third_party/WebKit/LayoutTests/platform/win/fast/forms/textarea/textarea-placeholder-pseudo-style-expected.png View 1 2 Binary file 0 comments Download
D third_party/WebKit/LayoutTests/platform/win/fast/forms/textarea/textarea-placeholder-pseudo-style-expected.txt View 1 2 1 chunk +0 lines, -39 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSSelector.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSSelector.cpp View 1 3 chunks +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/ElementRuleCollector.cpp View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/RuleFeature.cpp View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/RuleSet.h View 1 2 chunks +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/RuleSet.cpp View 1 3 chunks +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/SelectorChecker.cpp View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/parser/CSSParserSelector.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/InspectorTraceEvents.cpp View 1 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 35 (18 generated)
tkent
rune@, kochi@, what do you think about this approach? I made a patch to introduce ...
4 years, 1 month ago (2016-11-16 07:55:27 UTC) #3
rune
On 2016/11/16 07:55:27, tkent wrote: > rune@, kochi@, what do you think about this approach? ...
4 years, 1 month ago (2016-11-16 09:12:15 UTC) #4
tkent
On 2016/11/16 at 09:12:15, rune wrote: > On 2016/11/16 07:55:27, tkent wrote: > > rune@, ...
4 years, 1 month ago (2016-11-17 05:56:24 UTC) #5
rune
On 2016/11/17 05:56:24, tkent wrote: > On 2016/11/16 at 09:12:15, rune wrote: > > On ...
4 years, 1 month ago (2016-11-17 10:08:23 UTC) #6
rune
On 2016/11/17 05:56:24, tkent wrote: > Thank you for the suggestion. It will break the ...
4 years, 1 month ago (2016-11-17 10:25:08 UTC) #7
rune
https://codereview.chromium.org/2509593002/diff/1/third_party/WebKit/Source/core/css/CSSSelector.cpp File third_party/WebKit/Source/core/css/CSSSelector.cpp (right): https://codereview.chromium.org/2509593002/diff/1/third_party/WebKit/Source/core/css/CSSSelector.cpp#newcode360 third_party/WebKit/Source/core/css/CSSSelector.cpp:360: {"placeholder", CSSSelector::PseudoWebKitCustomElement}, Making this a PseudoWebKitCustomElement means this pseudo ...
4 years, 1 month ago (2016-11-18 09:53:23 UTC) #8
tkent
https://codereview.chromium.org/2509593002/diff/1/third_party/WebKit/Source/core/css/CSSSelector.cpp File third_party/WebKit/Source/core/css/CSSSelector.cpp (right): https://codereview.chromium.org/2509593002/diff/1/third_party/WebKit/Source/core/css/CSSSelector.cpp#newcode360 third_party/WebKit/Source/core/css/CSSSelector.cpp:360: {"placeholder", CSSSelector::PseudoWebKitCustomElement}, On 2016/11/18 at 09:53:23, rune wrote: > ...
4 years, 1 month ago (2016-11-21 05:36:02 UTC) #14
rune
https://codereview.chromium.org/2509593002/diff/20001/third_party/WebKit/LayoutTests/TestExpectations File third_party/WebKit/LayoutTests/TestExpectations (right): https://codereview.chromium.org/2509593002/diff/20001/third_party/WebKit/LayoutTests/TestExpectations#newcode1335 third_party/WebKit/LayoutTests/TestExpectations:1335: crbug.com/623345 fast/forms/textarea/textarea-placeholder-pseudo-style.html [ NeedsRebaseline ] Would it be a ...
4 years, 1 month ago (2016-11-21 08:52:33 UTC) #17
tkent
https://codereview.chromium.org/2509593002/diff/20001/third_party/WebKit/LayoutTests/TestExpectations File third_party/WebKit/LayoutTests/TestExpectations (right): https://codereview.chromium.org/2509593002/diff/20001/third_party/WebKit/LayoutTests/TestExpectations#newcode1335 third_party/WebKit/LayoutTests/TestExpectations:1335: crbug.com/623345 fast/forms/textarea/textarea-placeholder-pseudo-style.html [ NeedsRebaseline ] On 2016/11/21 at 08:52:33, ...
4 years, 1 month ago (2016-11-21 09:23:39 UTC) #18
rune
lgtm with nits. PS. I don't understand why the Mac-expectations are M and not D. ...
4 years, 1 month ago (2016-11-21 09:42:53 UTC) #19
tkent
https://codereview.chromium.org/2509593002/diff/40001/third_party/WebKit/LayoutTests/fast/forms/text/placeholder-pseudo-style.html File third_party/WebKit/LayoutTests/fast/forms/text/placeholder-pseudo-style.html (right): https://codereview.chromium.org/2509593002/diff/40001/third_party/WebKit/LayoutTests/fast/forms/text/placeholder-pseudo-style.html#newcode1 third_party/WebKit/LayoutTests/fast/forms/text/placeholder-pseudo-style.html:1: <style> On 2016/11/21 at 09:42:53, rune wrote: > <!DOCTYPE ...
4 years, 1 month ago (2016-11-21 14:42:07 UTC) #22
tkent
On 2016/11/21 at 09:42:53, rune wrote: > PS. I don't understand why the Mac-expectations are ...
4 years, 1 month ago (2016-11-21 14:43:26 UTC) #23
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/2509593002/60001
4 years, 1 month ago (2016-11-21 14:44:39 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/336016)
4 years, 1 month ago (2016-11-21 15:21:28 UTC) #29
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/2509593002/60001
4 years, 1 month ago (2016-11-21 16:12:29 UTC) #31
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 1 month ago (2016-11-21 18:05:51 UTC) #33
commit-bot: I haz the power
4 years, 1 month ago (2016-11-21 18:09:16 UTC) #35
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/573cef7f96c99540bea732d3425f6fbc8938174f
Cr-Commit-Position: refs/heads/master@{#433585}

Powered by Google App Engine
This is Rietveld 408576698