Open Bug 1502369 Opened 6 years ago Updated 2 years ago

Make elementFromPoint in ShadowRoot to follow the still undefined spec

Categories

(Core :: DOM: CSS Object Model, enhancement, P3)

enhancement

Tracking

()

People

(Reporter: smaug, Unassigned)

References

(Blocks 2 open bugs)

Details

(Keywords: dev-doc-needed)

This is yet to be defined in the spec.
https://github.com/w3c/csswg-drafts/issues/556

Right now, IIRC, we return null.
Summary: Make elementFromPoint in ShadowRoot to return host if text is assigned to a slow → Make elementFromPoint in ShadowRoot to return host if text is assigned to a slot
Add DDN, just in case
Keywords: dev-doc-needed
though, this isn't quite as simple.
https://github.com/w3c/csswg-drafts/issues/556#issuecomment-434491377

If host has display: contents and host is assigned and slot or slot's ancestor doesn't have display: contents, need to walk up in the tree to find some reasonable element.
Priority: -- → P3
Summary: Make elementFromPoint in ShadowRoot to return host if text is assigned to a slot → Make elementFromPoint in ShadowRoot to follow the still undefined spec
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.