Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: b60eab17a4bbaa6ed6134531e7b6137411c97f92
https://github.com/WebKit/WebKit/commit/b60eab17a4bbaa6ed6134531e7b6137411c97f92
Author: Anne van Kesteren <[email protected]>
Date: 2026-03-03 (Tue, 03 Mar 2026)
Changed paths:
A
LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/the-select-element/customizable-select/standalone-optgroup-no-shadow-tree-after-select-expected.html
A
LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/the-select-element/customizable-select/standalone-optgroup-no-shadow-tree-after-select.html
A
LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/the-select-element/customizable-select/standalone-option-no-shadow-tree-after-select-expected.html
A
LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/the-select-element/customizable-select/standalone-option-no-shadow-tree-after-select.html
M Source/WebCore/html/HTMLOptGroupElement.cpp
M Source/WebCore/html/HTMLOptionElement.cpp
Log Message:
-----------
Make <option> and <optgroup> label showing conditional on <select> owner
https://bugs.webkit.org/show_bug.cgi?id=309076
Reviewed by Ryosuke Niwa.
I noticed a small oversight after 308464@main and 308511@main which is
that an <option> or <optgroup> would still show its label attribute
outside of a <select> element if it previously had been inside a
<select> element. These extra conditionals and invalidation take care
of that.
Tests:
imported/w3c/web-platform-tests/html/semantics/forms/the-select-element/customizable-select/standalone-optgroup-no-shadow-tree-after-select.html
imported/w3c/web-platform-tests/html/semantics/forms/the-select-element/customizable-select/standalone-option-no-shadow-tree-after-select.html
Upstreamed here: https://github.com/web-platform-tests/wpt/pull/58228
Canonical link: https://commits.webkit.org/308573@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications