Skip to content
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

DocumentOrShadowRoot-prototype-elementFromPoint.html relies on undefined behavior or is just buggy #9542

Open
smaug---- opened this issue Feb 15, 2018 · 5 comments

Comments

@smaug----
Copy link
Contributor

See for example
WICG/webcomponents#735
WICG/webcomponents#736

https://wpt.fyi/shadow-dom

as far as I see, per current spec at least all the
'document.elementFromPoint and shadow.ElementFromPoint must return the shadow host of the hit-tested text node when the hit-tested text node is a direct child of the root and the host has display...'
and also others.

@gsnedders
Copy link
Member

cc/ @rakina

@rakina
Copy link
Contributor

rakina commented Feb 16, 2018

Hi, that test is based on this test from webkit and W3C editor's draft on https://w3c.github.io/webcomponents/spec/shadow/#extensions-to-the-documentorshadowroot-mixin. Should it not be in WPT?

@smaug----
Copy link
Contributor Author

Sure it should be tested, but the spec is vague, and the tests don't even follow the spec.
(well, the spec is vague enough, that it is hard to know what the expected test results should be)

@smaug----
Copy link
Contributor Author

smaug---- commented Feb 16, 2018

FWIW, Nightly Gecko will get the same test results as Blink, since that is my current interpretation of the spec.

@smaug----
Copy link
Contributor Author

ahaa, there is w3c/csswg-drafts#556

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants