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(253764@main): Disconnecting a subtree makes :lang pseudo class to never match #3764
Merged
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
EWS run on previous version of this PR (hash 9892b9a) |
rniwa
force-pushed
the
fix244484
branch
2 times, most recently
from
August 29, 2022 09:29
4121e71
to
225e389
Compare
EWS run on previous version of this PR (hash 4121e71) |
anttijk
approved these changes
Aug 29, 2022
rniwa
added
the
unsafe-merge-queue
Applied to send a pull request to merge-queue, but skip building and testing
label
Aug 29, 2022
β¦lass to never match https://bugs.webkit.org/show_bug.cgi?id=244484 Reviewed by Antti Koivisto. The bug was caused by removedFromAncestor always clearing the effective lang in ElementRareData when the element itself doesn't have a lang content attribute specified. This is wrong; We need to keep the effective lang when an ancestor of "this" element still has a lang content attribute. This patch also fixes a bug in insertedIntoAncestor that the code to inherit the effective lang from a parent node was not running when the subtree is not inside a document or a shadow root. To this end, insertedIntoAncestor has been refactored to match the structure of removedFromAncestor. Finally, this patch also removes the code in insertedIntoAncestor which was trying to clear the effective lang when "this" element doesn't have a lang attribute. This is also clearly wrong as any ancestor with a valid lang attribute should continue to apply the same effective lang. * LayoutTests/fast/css/lang-pseudo-disconnected-expected.txt: Added. * LayoutTests/fast/css/lang-pseudo-disconnected.html: Added. * Source/WebCore/dom/Element.cpp: (WebCore::Element::insertedIntoAncestor): (WebCore::Element::removedFromAncestor): Canonical link: https://commits.webkit.org/253915@main
webkit-early-warning-system
force-pushed
the
fix244484
branch
from
August 29, 2022 18:13
225e389
to
06479a2
Compare
Committed 253915@main (06479a2): https://commits.webkit.org/253915@main Reviewed commits have been landed. Closing PR #3764 and removing active labels. |
webkit-commit-queue
removed
the
unsafe-merge-queue
Applied to send a pull request to merge-queue, but skip building and testing
label
Aug 29, 2022
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.
06479a2
225e389