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

Issue 1607873002: Serialize namespaced type/* selectors according to CSSOM spec. (Closed)

Created:
4 years, 11 months ago by rune
Modified:
4 years, 11 months ago
Reviewers:
Timothy Loh, kochi
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@queryselector-no-pseudoelm-20160118
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Serialize namespaced type/* selectors according to CSSOM spec. See https://drafts.csswg.org/cssom/#serializing-selectors. The serialize-namespaced-type-selectors.html test is a stripped version of this pull request: https://github.com/w3c/csswg-test/pull/1020 Gecko (Firefox 43) passes all those tests. As part of this we are fixing problems with universal selectors being incorrectly marked as explicit (for serialization) in certain cases. When we have pseudo elements which require an implicit shadow combinator to match across shadow boundaries, we need to add an implicit universal selector to make the combinator combine the pseudo with some parent when the original selector doesn't have any other simple selectors. video::cue(i) can add the combinator between video and ::cue(i), while ::cue(i) requires a universal selector in the internal representation to have ::cue(i) -> /implicit-shadow-crossing/ -> *. For ::cue(i), the universal selector were marked correctly as implicit to avoid it being serialized as *::cue(i). However, with an explicit universal selector in the source *::cue(i), the universal selector were marked as explicit due to an incorrect isNull() check. Explicit universal selectors were already dropped from the serialization of selectors like *::before. BUG=579043 Committed: https://crrev.com/8f87ec8f7a65cb767447dc5e173c5e71589fd8e8 Cr-Commit-Position: refs/heads/master@{#371363}

Patch Set 1 #

Patch Set 2 : Rebased #

Patch Set 3 : More thorough fix #

Total comments: 2

Patch Set 4 : Rebased #

Patch Set 5 : Fixed rebase issue #

Patch Set 6 : Reverted incorrect test change #

Patch Set 7 : Rebased #

Messages

Total messages: 29 (12 generated)
rune
4 years, 11 months ago (2016-01-19 14:10:53 UTC) #1
kochi
In the description > video::cue(i) can add the combinator between div and ::shadow, is meant ...
4 years, 11 months ago (2016-01-20 07:12:08 UTC) #3
rune
On 2016/01/20 07:12:08, kochi wrote: > In the description > > video::cue(i) can add the ...
4 years, 11 months ago (2016-01-20 10:32:54 UTC) #5
kochi
non-owner LGTM
4 years, 11 months ago (2016-01-20 10:51:23 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1607873002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1607873002/20001
4 years, 11 months ago (2016-01-20 17:46:41 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/168705)
4 years, 11 months ago (2016-01-20 18:57:23 UTC) #11
kochi
On 2016/01/20 18:57:23, commit-bot: I haz the power wrote: > Try jobs failed on following ...
4 years, 11 months ago (2016-01-21 00:51:20 UTC) #12
rune
On 2016/01/21 00:51:20, kochi wrote: > On 2016/01/20 18:57:23, commit-bot: I haz the power wrote: ...
4 years, 11 months ago (2016-01-21 08:03:42 UTC) #13
rune
On 2016/01/21 08:03:42, rune wrote: > On 2016/01/21 00:51:20, kochi wrote: > > Seems my ...
4 years, 11 months ago (2016-01-22 23:26:30 UTC) #15
kochi
https://codereview.chromium.org/1607873002/diff/40001/third_party/WebKit/LayoutTests/fast/dom/shadow/slotted-pseudo-element-css-text.html File third_party/WebKit/LayoutTests/fast/dom/shadow/slotted-pseudo-element-css-text.html (right): https://codereview.chromium.org/1607873002/diff/40001/third_party/WebKit/LayoutTests/fast/dom/shadow/slotted-pseudo-element-css-text.html#newcode8 third_party/WebKit/LayoutTests/fast/dom/shadow/slotted-pseudo-element-css-text.html:8: ::slotted(*) { display: block; } Please keep the prefix ...
4 years, 11 months ago (2016-01-25 04:21:54 UTC) #16
rune
https://codereview.chromium.org/1607873002/diff/40001/third_party/WebKit/LayoutTests/fast/dom/shadow/slotted-pseudo-element-css-text.html File third_party/WebKit/LayoutTests/fast/dom/shadow/slotted-pseudo-element-css-text.html (right): https://codereview.chromium.org/1607873002/diff/40001/third_party/WebKit/LayoutTests/fast/dom/shadow/slotted-pseudo-element-css-text.html#newcode8 third_party/WebKit/LayoutTests/fast/dom/shadow/slotted-pseudo-element-css-text.html:8: ::slotted(*) { display: block; } On 2016/01/25 04:21:53, kochi ...
4 years, 11 months ago (2016-01-25 09:33:17 UTC) #17
kochi
lgtm
4 years, 11 months ago (2016-01-25 20:20:38 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1607873002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1607873002/100001
4 years, 11 months ago (2016-01-25 22:00:12 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: android_chromium_gn_compile_rel on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_chromium_gn_compile_rel/builds/12596) android_clang_dbg_recipe on tryserver.chromium.android (JOB_FAILED, ...
4 years, 11 months ago (2016-01-25 22:07:08 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1607873002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1607873002/120001
4 years, 11 months ago (2016-01-25 22:33:36 UTC) #25
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 11 months ago (2016-01-26 00:12:37 UTC) #27
commit-bot: I haz the power
4 years, 11 months ago (2016-01-26 00:15:02 UTC) #29
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/8f87ec8f7a65cb767447dc5e173c5e71589fd8e8
Cr-Commit-Position: refs/heads/master@{#371363}

Powered by Google App Engine
This is Rietveld 408576698