Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #58773, comment 28


Ignore:
Timestamp:
05/06/2024 06:49:00 PM (7 months ago)
Author:
westonruter
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #58773, comment 28

    initial v1  
    11Update: After [https://wordpress.slack.com/archives/C02RP4X03/p1715011007477499 chatting] with @joedolson, I found out that `visibility:hidden` works just as well if not better than `opacity:0`. Not only does the lazy-loaded iframe load consistently across Chrome, Safari, and Firefox but there is also an actual accessibility ''benefit'' to using `visibility:hidden` over `clip`: the entire iframe is made non-interactive. With `clip` a user tabbing through links on a page will also encounter tab stops ''inside'' the clipped iframe, which is particularly confusing to sighted users navigating by keyboard as focus seems to get lost on the page for several tab presses. In contrast, when an iframe is hidden with `visibility` then no tab stops occur in the iframe. The PR has been updated to apply this change.
    22
    3 Side note: I also discovered that `clip` is [https://developer.mozilla.org/en-US/docs/Web/CSS/clip deprecated]!.
     3Side note: I also discovered that `clip` is [https://developer.mozilla.org/en-US/docs/Web/CSS/clip deprecated]!