-
Notifications
You must be signed in to change notification settings - Fork 22.7k
New pages: ShadowRoot.elementFromPoint() #37115
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
Conversation
Preview URLs (comment last updated: 2025-01-29 19:29:57) |
let customElem = document.querySelector("my-custom-element"); | ||
let shadow = customElem.shadowRoot; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could be const
.
@estelle , since you have some comments from Hamish here I'll wait for them to be resolved before re-reviewing (otherwise things might get confusing). |
Co-authored-by: Hamish Willee <[email protected]>
Co-authored-by: Hamish Willee <[email protected]>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
An {{domxref("Element")}}; the topmost shadow root element located at the specified coordinates, if any. | ||
|
||
## Examples | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FYI it is now common, but not mandatory (AFAIK) to always have a descriptive level 3 heading as well as the main heading. This is a good thing to do, but up to you.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the example is just a code example, not a rendered example. I generally add the subheading on live examples or when there are multiple. here is would be overkill.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Co-authored-by: Hamish Willee <[email protected]>
@wbamberg I think this is ready for re-review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 thanks Estelle!
Part of openwebdocs/project#214