Toolbar audit incorrectly flag images as above the fold #12993
Labels
- P3: minor bug
An edge case that only affects very specific usage (priority)
feat: toolbar
Related to dev toolbar (scope)
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
The toolbar audit is flagging images that is below the fold when the following conditions are meet:
The fix #11617 does not seem to handle this situation, as window.scrollY is always 0 when the body is not the scroll container.
While the following fix mentioned in #10891 handle this correctly:
What's the expected result?
The image should not be marked as above the fold
Link to Minimal Reproducible Example
https://stackblitz.com/edit/withastro-astro-njrp6cag
Participation
The text was updated successfully, but these errors were encountered: