-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Regression(264098@main) HTMLFieldsetElement behavior for :enabled / :disabled CSS selectors is incorrect #14959
Merged
webkit-commit-queue
merged 1 commit into
WebKit:main
from
cdumez:258078_Fieldset_disabled_selector
Jun 14, 2023
Merged
Regression(264098@main) HTMLFieldsetElement behavior for :enabled / :disabled CSS selectors is incorrect #14959
webkit-commit-queue
merged 1 commit into
WebKit:main
from
cdumez:258078_Fieldset_disabled_selector
Jun 14, 2023
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cdumez
added
the
Forms
For bugs specific to form elements (checkboxes, buttons, text fields, etc.)
label
Jun 14, 2023
EWS run on previous version of this PR (hash 05db01b) |
nt1m
approved these changes
Jun 14, 2023
webkit-ews-buildbot
added
the
merging-blocked
Applied to prevent a change from being merged
label
Jun 14, 2023
cdumez
force-pushed
the
258078_Fieldset_disabled_selector
branch
from
June 14, 2023 18:29
05db01b
to
a32e60b
Compare
EWS run on current version of this PR (hash a32e60b) |
rniwa
approved these changes
Jun 14, 2023
β¦disabled CSS selectors is incorrect https://bugs.webkit.org/show_bug.cgi?id=258078 Reviewed by Tim Nguyen. 264098@main updated HTMLFieldSetElement::isDisabledFormControl() to return false since a fieldset element can never be disabled per the specification. This had the side effect of affecting our behavior for :enabled / :disabled CSS selectors, which relied on this function. However, the behavior of these CSS selectors shouldn't have changed since they rely on the "actually disabled" state, not the "disabled" state [1]. There were two issues here, some of our CSS selector logic was relying on isDisabledFormControl() instead of isActuallyDisabled(). Also, 264098@main shouldn't have changed the value returned by isActuallyDisabled() for HTMLFieldsetElements. This was pointed out at: - whatwg/html#5886 (comment) [1] https://html.spec.whatwg.org/multipage/semantics-other.html#selector-enabled [2] https://html.spec.whatwg.org/multipage/semantics-other.html#selector-disabled [3] https://html.spec.whatwg.org/multipage/semantics-other.html#concept-element-disabled [4] https://html.spec.whatwg.org/multipage/form-elements.html#concept-fieldset-disabled * LayoutTests/imported/w3c/web-platform-tests/html/semantics/selectors/pseudo-classes/disabled.html: * LayoutTests/imported/w3c/web-platform-tests/html/semantics/selectors/pseudo-classes/enabled.html: * Source/WebCore/css/SelectorCheckerTestFunctions.h: (WebCore::matchesEnabledPseudoClass): * Source/WebCore/html/HTMLElement.h: * Source/WebCore/html/HTMLFieldSetElement.cpp: (WebCore::HTMLFieldSetElement::isActuallyDisabled const): * Source/WebCore/html/HTMLFieldSetElement.h: Canonical link: https://commits.webkit.org/265166@main
webkit-commit-queue
force-pushed
the
258078_Fieldset_disabled_selector
branch
from
June 14, 2023 21:32
a32e60b
to
a6d354d
Compare
Committed 265166@main (a6d354d): https://commits.webkit.org/265166@main Reviewed commits have been landed. Closing PR #14959 and removing active labels. |
webkit-commit-queue
removed
the
merge-queue
Applied to send a pull request to merge-queue
label
Jun 14, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
a6d354d
a32e60b
π wincairoπ§ͺ mac-AS-debug-wk2