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

Issue 1576553002: Pseudo element selectors in compound selector lists are invalid. (Closed)

Created:
4 years, 11 months ago by rune
Modified:
4 years, 11 months ago
Reviewers:
Timothy Loh
CC:
chromium-reviews, 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

Pseudo element selectors in compound selector lists are invalid. These selectors were never matching, but they are invalid and rules with invalid selectors should not show up in the CSSOM. This is just partly fixing detection of invalid use of pseudo elements. We also incorrectly accept simple selectors following pseudo elements. In most cases those are invalid selectors. The modified existing cases contained invalid selectors and they were modified to make them valid for serialization testing purposes. R=timloh@chromium.org BUG=489481, 393490 Committed: https://crrev.com/83f990eecc65eaed30f45db7e1649898c1e7076d Cr-Commit-Position: refs/heads/master@{#368823}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Rebased #

Patch Set 3 : Fixed review issues #

Messages

Total messages: 20 (8 generated)
rune
4 years, 11 months ago (2016-01-08 21:54:47 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1576553002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1576553002/1
4 years, 11 months ago (2016-01-08 21:55:38 UTC) #3
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 11 months ago (2016-01-09 00:36:44 UTC) #5
Timothy Loh
The spec doesn't seem to explicitly disallow this? https://drafts.csswg.org/selectors/#matches-pseudo "Pseudo-elements [..] are not valid within ...
4 years, 11 months ago (2016-01-11 05:20:54 UTC) #6
rune
On 2016/01/11 05:20:54, Timothy Loh wrote: > The spec doesn't seem to explicitly disallow this? ...
4 years, 11 months ago (2016-01-11 08:38:39 UTC) #7
rune
https://codereview.chromium.org/1576553002/diff/1/third_party/WebKit/Source/core/css/parser/CSSSelectorParser.cpp File third_party/WebKit/Source/core/css/parser/CSSSelectorParser.cpp (right): https://codereview.chromium.org/1576553002/diff/1/third_party/WebKit/Source/core/css/parser/CSSSelectorParser.cpp#newcode109 third_party/WebKit/Source/core/css/parser/CSSSelectorParser.cpp:109: DisallowPseudoElementsScope scope(this); On 2016/01/11 05:20:54, Timothy Loh wrote: > ...
4 years, 11 months ago (2016-01-11 09:30:23 UTC) #9
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1576553002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1576553002/40001
4 years, 11 months ago (2016-01-11 09:49:33 UTC) #11
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 11 months ago (2016-01-11 10:55:31 UTC) #13
Timothy Loh
On 2016/01/11 08:38:39, rune wrote: > On 2016/01/11 05:20:54, Timothy Loh wrote: > > The ...
4 years, 11 months ago (2016-01-12 01:52:31 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1576553002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1576553002/40001
4 years, 11 months ago (2016-01-12 07:36:32 UTC) #16
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 11 months ago (2016-01-12 08:41:31 UTC) #18
commit-bot: I haz the power
4 years, 11 months ago (2016-01-12 08:42:48 UTC) #20
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/83f990eecc65eaed30f45db7e1649898c1e7076d
Cr-Commit-Position: refs/heads/master@{#368823}

Powered by Google App Engine
This is Rietveld 408576698