Summary: | offsetParent is wrong if the offset parent is inside some shadow DOM | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Pascal Spadone <pascal.spadone> | ||||
Component: | DOM | Assignee: | Nobody <webkit-unassigned> | ||||
Status: | RESOLVED INVALID | ||||||
Severity: | Normal | CC: | emilio, rniwa, webkit-bug-importer | ||||
Priority: | P2 | Keywords: | InRadar | ||||
Version: | Safari 13 | ||||||
Hardware: | Mac | ||||||
OS: | macOS 10.15 | ||||||
Bug Depends on: | |||||||
Bug Blocks: | 148695 | ||||||
Attachments: |
|
Description
Pascal Spadone
2019-11-14 04:13:55 PST
This is expected per https://bugzilla.mozilla.org/show_bug.cgi?id=1514074 / bug 157437 / https://github.com/w3c/csswg-drafts/issues/159, afaict. Firefox behaves the same. Fair enough! Makes sense that the DOM API should avoid leaking shadow nodes. I will check the Blink bug tracker and see if it makes sense to open a bug there, then. Apologies for not googling long enough before opening this ticket! (In reply to Emilio Cobos Álvarez (:emilio) from comment #2) > This is expected per https://bugzilla.mozilla.org/show_bug.cgi?id=1514074 / > bug 157437 / https://github.com/w3c/csswg-drafts/issues/159, afaict. Firefox > behaves the same. Looks like Blink never implemented the new behavior. Commented on the issue to ping rakina & tkent. Hopefully they can align Blink's behavior. Closing as invalid because WebKit's current behavior matches the spec & Firefox. |