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

Issue 1600793002: Pseudo elements may only appear in rightmost compound. (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 elements may only appear in rightmost compound. Pseudo elements are appended to an originating element as defined in Selectors Level 4 and may only be followed by user action pseudo classes. That means it also must appear in the rightmost compound. We drop selectors as invalid when trying to add a compound when we have already seen a pseudo element in a previous compound. There are expections to this for Blink, where we implement ::content and ::shadow to pierce through insertion points and shadow boundaries as pseudo elements. Another exception is for custom pseudo elements in UA stylesheets, as we rely on exposing inner shadow structure to style media controls and VTT track regions (crbug.com/578131). R=timloh@chromium.org BUG=489481 Committed: https://crrev.com/c8fd6bd1740b6dca0fdca3a8c0171a4206e73a16 Cr-Commit-Position: refs/heads/master@{#370088}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Start counting from 0. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+81 lines, -11 lines) Patch
M third_party/WebKit/Source/core/css/parser/CSSSelectorParser.cpp View 1 1 chunk +35 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/core/css/parser/CSSSelectorParserTest.cpp View 1 chunk +46 lines, -4 lines 0 comments Download

Messages

Total messages: 14 (5 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/1600793002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1600793002/1
4 years, 11 months ago (2016-01-18 10:02:41 UTC) #2
rune
ptal
4 years, 11 months ago (2016-01-18 10:51:35 UTC) #3
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 11 months ago (2016-01-18 11:16:27 UTC) #5
Timothy Loh
https://codereview.chromium.org/1600793002/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/1600793002/diff/1/third_party/WebKit/Source/core/css/parser/CSSSelectorParser.cpp#newcode136 third_party/WebKit/Source/core/css/parser/CSSSelectorParser.cpp:136: HasPseudoElementForRightmostCompound = 1 << 1, Shouldn't we start counting ...
4 years, 11 months ago (2016-01-19 04:59:27 UTC) #6
Timothy Loh
oh, and lgtm, forgot about that :/
4 years, 11 months ago (2016-01-19 05:32:24 UTC) #7
rune
https://codereview.chromium.org/1600793002/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/1600793002/diff/1/third_party/WebKit/Source/core/css/parser/CSSSelectorParser.cpp#newcode136 third_party/WebKit/Source/core/css/parser/CSSSelectorParser.cpp:136: HasPseudoElementForRightmostCompound = 1 << 1, On 2016/01/19 04:59:27, Timothy ...
4 years, 11 months ago (2016-01-19 08:41:51 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1600793002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1600793002/20001
4 years, 11 months ago (2016-01-19 08:42:29 UTC) #11
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 11 months ago (2016-01-19 09:52:14 UTC) #12
commit-bot: I haz the power
4 years, 11 months ago (2016-01-19 09:53:12 UTC) #14
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/c8fd6bd1740b6dca0fdca3a8c0171a4206e73a16
Cr-Commit-Position: refs/heads/master@{#370088}

Powered by Google App Engine
This is Rietveld 408576698