bramus / scroll-driven-animations-debugger-extension

Browser extension to debug Scroll-Driven Animations
40 stars 1 forks source link

The extension doesn’t work with elements in iframes. It shows saying that there are no Scroll-Driven Animations attached to the element even though there are. #20

Open bramus opened 1 year ago

bramus commented 1 year ago

E.g. https://codepen.io/bramus/pen/vYvXWyv: inspect the parent page first, and then select div.up in the iframe. The extension incorrectly shows that there are no animations attached while there certainly are!

image
bramus commented 1 year ago

This is the same issue as this issue …

… but comes with a twist. Sometimes, the Chrome extension host sometimes lies about the value of $0 is upon selecting a node that is inside an iframe. Instead of returning undefined because it cannot access the not, it returns the last selected node that was not in the iframe before you selected an element inside the iframe.

A bug was filed on Chromium’s end in order to get this fixed: https://crbug.com/1480418

Because this bug needs to be fixed on Chrome’s end, I am marking this as https://github.com/bramus/scroll-driven-animations-debugger-extension/labels/wontfix and adding it to the https://github.com/bramus/scroll-driven-animations-debugger-extension/labels/FAQ.

bramus commented 1 year ago

Reopening so that the issue can be found when searching (because search defaults to non-closed issues)