Fix <select> native popup with <datalist> <option>s [chromium/src : main]

0 views
Skip to first unread message

David Baron (Gerrit)

unread,
Apr 18, 2024, 9:42:14 PMApr 18
to Joey Arhar, David Baron, AyeAye, Chromium LUCI CQ, dpr...@google.com, blink-...@chromium.org, blink-rev...@chromium.org
Attention needed from Joey Arhar

David Baron added 1 comment

File third_party/blink/renderer/core/html/resources/stylable_select.css
Line 126, Patchset 4 (Latest):select:open > datalist {
David Baron . unresolved

Is there a reason this needs to be `select:open` rather than just `select`?

(The fixes to make `:open` work right look good, though!)

Open in Gerrit

Related details

Attention is currently required from:
  • Joey Arhar
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I2ef80ed25feacef9f62cf7cee68347110081be4f
Gerrit-Change-Number: 5462883
Gerrit-PatchSet: 4
Gerrit-Owner: Joey Arhar <jar...@chromium.org>
Gerrit-Reviewer: David Baron <dba...@chromium.org>
Gerrit-Reviewer: Joey Arhar <jar...@chromium.org>
Gerrit-Attention: Joey Arhar <jar...@chromium.org>
Gerrit-Comment-Date: Fri, 19 Apr 2024 01:42:01 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Dominique Fauteux-Chapleau (Gerrit)

unread,
Apr 22, 2024, 2:05:18 PMApr 22
to Joey Arhar, dpr...@google.com, David Baron, AyeAye, Chromium LUCI CQ, blink-...@chromium.org, blink-rev...@chromium.org
Attention needed from Joey Arhar

Dominique Fauteux-Chapleau removed dpr...@google.com from this change

Deleted Reviewers:
Open in Gerrit

Related details

Attention is currently required from:
  • Joey Arhar
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: deleteReviewer
satisfied_requirement
unsatisfied_requirement
open
diffy

Joey Arhar (Gerrit)

unread,
Apr 22, 2024, 3:32:05 PMApr 22
to David Baron, AyeAye, Chromium LUCI CQ, blink-...@chromium.org, blink-rev...@chromium.org
Attention needed from David Baron

Joey Arhar added 1 comment

File third_party/blink/renderer/core/html/resources/stylable_select.css
Line 126, Patchset 4 (Latest):select:open > datalist {
David Baron . unresolved

Is there a reason this needs to be `select:open` rather than just `select`?

(The fixes to make `:open` work right look good, though!)

Joey Arhar

If I removed the `:open`, then the datalist popover would always be showing because this would override the rule which sets display:none on popovers, I think.

Open in Gerrit

Related details

Attention is currently required from:
  • David Baron
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I2ef80ed25feacef9f62cf7cee68347110081be4f
Gerrit-Change-Number: 5462883
Gerrit-PatchSet: 4
Gerrit-Owner: Joey Arhar <jar...@chromium.org>
Gerrit-Reviewer: David Baron <dba...@chromium.org>
Gerrit-Reviewer: Joey Arhar <jar...@chromium.org>
Gerrit-Attention: David Baron <dba...@chromium.org>
Gerrit-Comment-Date: Mon, 22 Apr 2024 19:31:53 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: David Baron <dba...@chromium.org>
satisfied_requirement
unsatisfied_requirement
open
diffy

David Baron (Gerrit)

unread,
Apr 22, 2024, 4:09:18 PMApr 22
to Joey Arhar, David Baron, AyeAye, Chromium LUCI CQ, blink-...@chromium.org, blink-rev...@chromium.org
Attention needed from Joey Arhar

David Baron added 3 comments

Patchset-level comments
File-level comment, Patchset 4 (Latest):
David Baron . unresolved

OK, this LGTM, except I think you need to find a way to document your dependency on the `CSSPseudoOpenClosed` feature, since that's still `"experimental"` and nothing guarantees (I think) that it will ship first. Maybe comments in `runtime_enabled_features.json5` are what you want? (I don't think you want an actual feature dependency, because I don't think you want to ship it automatically if you ship the new select.)

File third_party/blink/renderer/core/html/forms/select_type.cc
Line 548, Patchset 4 (Latest): select_->GetDocument().UpdateStyleAndLayoutForNode(
David Baron . resolved

This is a little unfortunate, but I guess it's OK.

File third_party/blink/renderer/core/html/resources/stylable_select.css
Line 126, Patchset 4 (Latest):select:open > datalist {
David Baron . resolved

Is there a reason this needs to be `select:open` rather than just `select`?

(The fixes to make `:open` work right look good, though!)

Joey Arhar

If I removed the `:open`, then the datalist popover would always be showing because this would override the rule which sets display:none on popovers, I think.

David Baron

Acknowledged

Open in Gerrit

Related details

Attention is currently required from:
  • Joey Arhar
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I2ef80ed25feacef9f62cf7cee68347110081be4f
Gerrit-Change-Number: 5462883
Gerrit-PatchSet: 4
Gerrit-Owner: Joey Arhar <jar...@chromium.org>
Gerrit-Reviewer: David Baron <dba...@chromium.org>
Gerrit-Reviewer: Joey Arhar <jar...@chromium.org>
Gerrit-Attention: Joey Arhar <jar...@chromium.org>
Gerrit-Comment-Date: Mon, 22 Apr 2024 20:09:10 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: David Baron <dba...@chromium.org>
Comment-In-Reply-To: Joey Arhar <jar...@chromium.org>
satisfied_requirement
unsatisfied_requirement
open
diffy

Joey Arhar (Gerrit)

unread,
Apr 22, 2024, 4:16:52 PMApr 22
to David Baron, AyeAye, Chromium LUCI CQ, blink-...@chromium.org, blink-rev...@chromium.org
Attention needed from David Baron

Joey Arhar added 1 comment

Patchset-level comments
David Baron . resolved

OK, this LGTM, except I think you need to find a way to document your dependency on the `CSSPseudoOpenClosed` feature, since that's still `"experimental"` and nothing guarantees (I think) that it will ship first. Maybe comments in `runtime_enabled_features.json5` are what you want? (I don't think you want an actual feature dependency, because I don't think you want to ship it automatically if you ship the new select.)

Joey Arhar

Good idea, I added a depends_on in runtime enabled features and added a comment explaining why we need it

Open in Gerrit

Related details

Attention is currently required from:
  • David Baron
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Review
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I2ef80ed25feacef9f62cf7cee68347110081be4f
Gerrit-Change-Number: 5462883
Gerrit-PatchSet: 4
Gerrit-Owner: Joey Arhar <jar...@chromium.org>
Gerrit-Reviewer: David Baron <dba...@chromium.org>
Gerrit-Reviewer: Joey Arhar <jar...@chromium.org>
Gerrit-Attention: David Baron <dba...@chromium.org>
Gerrit-Comment-Date: Mon, 22 Apr 2024 20:16:38 +0000
satisfied_requirement
unsatisfied_requirement
open
diffy

David Baron (Gerrit)

unread,
Apr 23, 2024, 11:44:34 AMApr 23
to Joey Arhar, David Baron, AyeAye, Chromium LUCI CQ, jmedle...@chromium.org, kinuko...@chromium.org, blink-...@chromium.org, blink-rev...@chromium.org
Attention needed from Joey Arhar

David Baron voted Code-Review+1

Code-Review+1
Open in Gerrit

Related details

Attention is currently required from:
  • Joey Arhar
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement satisfiedCode-Review
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I2ef80ed25feacef9f62cf7cee68347110081be4f
Gerrit-Change-Number: 5462883
Gerrit-PatchSet: 5
Gerrit-Owner: Joey Arhar <jar...@chromium.org>
Gerrit-Reviewer: David Baron <dba...@chromium.org>
Gerrit-Reviewer: Joey Arhar <jar...@chromium.org>
Gerrit-Attention: Joey Arhar <jar...@chromium.org>
Gerrit-Comment-Date: Tue, 23 Apr 2024 15:44:23 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
satisfied_requirement
open
diffy

Joey Arhar (Gerrit)

unread,
Apr 23, 2024, 6:37:22 PMApr 23
to David Baron, AyeAye, Chromium LUCI CQ, jmedle...@chromium.org, kinuko...@chromium.org, blink-...@chromium.org, blink-rev...@chromium.org

Joey Arhar voted Commit-Queue+2

Commit-Queue+2
Open in Gerrit

Related details

Attention set is empty
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement satisfiedCode-Review
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I2ef80ed25feacef9f62cf7cee68347110081be4f
Gerrit-Change-Number: 5462883
Gerrit-PatchSet: 5
Gerrit-Owner: Joey Arhar <jar...@chromium.org>
Gerrit-Reviewer: David Baron <dba...@chromium.org>
Gerrit-Reviewer: Joey Arhar <jar...@chromium.org>
Gerrit-Comment-Date: Tue, 23 Apr 2024 22:37:11 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
satisfied_requirement
open
diffy

Chromium LUCI CQ (Gerrit)

unread,
Apr 23, 2024, 7:23:53 PMApr 23
to Joey Arhar, David Baron, AyeAye, jmedle...@chromium.org, kinuko...@chromium.org, blink-...@chromium.org, blink-rev...@chromium.org

Chromium LUCI CQ submitted the change

Change information

Commit message:
Fix <select> native popup with <datalist> <option>s

In http://crrev.com/1285415 I made the following markup successfully
render options in the native popup in appearance:auto mode:
<select>
<datalist>
<option>option</option>

However, it didn't completely work, at least on MacOS (not sure how
other platforms worked), because the <option>s won't have a computed
style because the <datalist> is display:none even when the native popup
is open. display:none options are not supposed to be included in the
native popup as a way to allow developers to exclude options from being
included in the native popup.

This patch fixes this by adding a select:open rule to make the
<datalist> display:block so that the <option>s can have a computed
style.
Bug: 1511354
Fixed: 334122678
Change-Id: I2ef80ed25feacef9f62cf7cee68347110081be4f
Reviewed-by: David Baron <dba...@chromium.org>
Commit-Queue: Joey Arhar <jar...@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1291607}
Files:
  • M third_party/blink/renderer/core/html/forms/external_popup_menu_test.cc
  • M third_party/blink/renderer/core/html/forms/select_type.cc
  • M third_party/blink/renderer/core/html/resources/stylable_select.css
  • M third_party/blink/renderer/core/testing/data/core_test_bundle_data.filelist
  • A third_party/blink/renderer/core/testing/data/popup/select_with_datalist.html
  • M third_party/blink/renderer/platform/runtime_enabled_features.json5
Change size: M
Delta: 6 files changed, 56 insertions(+), 0 deletions(-)
Branch: refs/heads/main
Submit Requirements:
  • requirement satisfiedCode-Review: +1 by David Baron
Open in Gerrit
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: merged
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I2ef80ed25feacef9f62cf7cee68347110081be4f
Gerrit-Change-Number: 5462883
Gerrit-PatchSet: 6
Gerrit-Owner: Joey Arhar <jar...@chromium.org>
Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
open
diffy
satisfied_requirement

luci-bisection@appspot.gserviceaccount.com (Gerrit)

unread,
Apr 24, 2024, 10:21:50 PMApr 24
to Chromium LUCI CQ, David Baron, AyeAye, jmedle...@chromium.org, kinuko...@chromium.org, blink-...@chromium.org, blink-rev...@chromium.org

Message from luci-bi...@appspot.gserviceaccount.com

LUCI Bisection has identified this change as the cause of a test failure. See the analysis: https://ci.chromium.org/ui/p/chromium/bisection/test-analysis/b/5750847549997056

Sample build with failed test: https://ci.chromium.org/b/8749818271081443553
Affected test(s):
[ninja://:content_shell_wpt/external/wpt/html/semantics/forms/the-select-element/stylable-select/nested-options.tenative.html](https://ci.chromium.org/ui/test/chromium/ninja:%2F%2F:content_shell_wpt%2Fexternal%2Fwpt%2Fhtml%2Fsemantics%2Fforms%2Fthe-select-element%2Fstylable-select%2Fnested-options.tenative.html?q=VHash%3A4419e4895506aff0)
A revert for this change was not created because the builder of the failed test(s) is not being watched by gardeners.

If this is a false positive, please report it at http://b.corp.google.com/createIssue?component=1199205&description=Analysis%3A+https%3A%2F%2Fci.chromium.org%2Fui%2Fp%2Fchromium%2Fbisection%2Ftest-analysis%2Fb%2F5750847549997056&format=PLAIN&priority=P3&title=Wrongly+blamed+https%3A%2F%2Fchromium-review.googlesource.com%2Fc%2Fchromium%2Fsrc%2F%2B%2F5462883&type=BUG

Open in Gerrit

Related details

Attention set is empty
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement satisfiedCode-Review
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I2ef80ed25feacef9f62cf7cee68347110081be4f
Gerrit-Change-Number: 5462883
Gerrit-PatchSet: 6
Gerrit-Owner: Joey Arhar <jar...@chromium.org>
Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
Gerrit-Reviewer: David Baron <dba...@chromium.org>
Gerrit-Reviewer: Joey Arhar <jar...@chromium.org>
Gerrit-Comment-Date: Thu, 25 Apr 2024 02:21:37 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: No
satisfied_requirement
open
diffy
Reply all
Reply to author
Forward
0 new messages