You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Upstreaming Shadow DOM and outstanding v1 work #661
What is the status with the pseudo class :defined? Seemed to be lacking in certain vendors but also could be merely a reflection of their respective overall status of Custom Elements which of course is outside the scope of this issue.
It seems that was since changed to a short page that basically 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.
I guess that was related to this issue? But I'm also very confused by where did that definition go.
The only current spec mentioning elementFromPoint and elementsFromPoint that I could find now is the CSSOM View Module draft that specifies them on the Document only.
So it kind of looks like elementFromPoint and elementsFromPoint were being dropped from the spec for DocumentOrShadowRoot since they were defined in Shadow DOM spec for that but there's no live spec reference for it anymore but I'm pretty sure this is not intentional.
This confusion also seems to have caused TypeScript to drop those methods from their DOM type definitions in TS 4.4 but looks like were added back in TS 4.5.
Activity
annevk commentedon Sep 5, 2017
The main thing lacking in OP is information about corresponding CSS efforts. There's https://drafts.csswg.org/css-scoping/ and https://github.com/w3c/csswg-drafts/labels/css-scoping-1 at least, but maybe there's more?
snuggs commentedon Sep 7, 2017
@annevk perhaps update description. Missing a # 1.
What is the status with the pseudo class
:defined? Seemed to be lacking in certain vendors but also could be merely a reflection of their respective overall status of Custom Elements which of course is outside the scope of this issue.annevk commentedon Sep 7, 2017
The numbers correspond to the sections in https://w3c.github.io/webcomponents/spec/shadow/.
annevk commentedon Sep 7, 2017
:definedis now #665, though note it's not related to shadow trees.snuggs commentedon Sep 7, 2017
Ah yes i see now after re-assessing the steps section @annevk 🙏 Thanks for the clarification.
Update README.md (update bug number and its link)
Haprog commentedon Dec 13, 2021
The Shadow DOM spec used to declare that
DocumentOrShadowRootis extended withelementFromPointandelementsFromPoint. Here's the latest web archive snapshot that still says so: https://web.archive.org/web/20180228173001/http://www.w3.org/TR/shadow-dom/It seems that was since changed to a short page that basically just says:
I guess that was related to this issue? But I'm also very confused by where did that definition go.
The only current spec mentioning
elementFromPointandelementsFromPointthat I could find now is the CSSOM View Module draft that specifies them on theDocumentonly.Related: w3c/csswg-drafts#5886
See also: https://caniuse.com/mdn-api_documentorshadowroot_elementfrompoint
Haprog commentedon Dec 13, 2021
So it kind of looks like
elementFromPointandelementsFromPointwere being dropped from the spec forDocumentOrShadowRootsince they were defined in Shadow DOM spec for that but there's no live spec reference for it anymore but I'm pretty sure this is not intentional.This confusion also seems to have caused TypeScript to drop those methods from their DOM type definitions in TS 4.4 but looks like were added back in TS 4.5.
TypeScript 4.4 libdom changes (microsoft/TypeScript-DOM-lib-generator#1029)
TypeScript 4.5 libdom changes (microsoft/TypeScript-DOM-lib-generator#1143)
annevk commentedon Dec 13, 2021
They need to be defined in CSSOM. That hasn't happened yet, but as you found there's an issue tracking it.
iameduardod commentedon Apr 15, 2022
Hi @annevk , any ETA when Shadow DOM / Roots will be included in web standards by W3C?
annevk commentedon Apr 19, 2022
Already happened: https://dom.spec.whatwg.org/review-drafts/2020-06/.