Remove spec_urls for ShadowRoot.element(s)FromPoint #19240
Merged
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.
ShadowRoot.elementFromPoint()
andShadowRoot.elementsFromPoint()
were added to the collector as custom, non-standard IDL in response to [cssom-view] ShadowRoot should also have elementFromPoint and elementsFromPoint w3c/csswg-drafts#5886.In that PR, GitHub user @Haprog links to the old version of the W3C Shadow DOM spec, which contains these methods defined on a DocumentOrShadowRoot interface mixin: https://www.w3.org/TR/2017/WD-shadow-dom-20170905/#extensions-to-the-documentorshadowroot-mixin
The very next version now just says “Shadow DOM specification is being incorporated into to the DOM specification, HTML specification, CSS Scoping Module Level 1, UI Events specification, and other relevant specifications.”
It seems that these features were moved over to the CSSOM View spec at first glance… https://drafts.csswg.org/cssom-view/#extensions-to-the-document-interface
…but the members have been defined much earlier in the spec: see https://www.w3.org/TR/2008/WD-cssom-view-20080222/#the-documentview-interface and https://www.w3.org/TR/2013/WD-cssom-view-20131217/#extensions-to-the-document-interface
TL:DR, the features on ShadowRoot seem to have originally been a standard feature, but has since been dropped and are no longer standard, yet browsers still implement the older IDL.