Weston Ruter
9702c2e265
Embeds: Enable lazy-loading of post embeds and fix keyboard a11y for hidden iframes.
...
Chrome unreliably loads a lazy-loaded iframe when it is hidden using `clip: rect(1px, 1px, 1px, 1px)`. Instead of using `clip`, a lazy-loaded iframe can also be hidden with `visibility:hidden` which results in it loading not only in Chrome but all other browsers. With this change applied, the hard-coded check to prevent lazy-loading post embeds is now removed. An added benefit to using `visibility:hidden` is that the entire iframe in this case is not interactable, meaning that users navigating the document with the keyboard will not unexpectedly encounter tab stops inside of the hidden iframe, as can happen now with `clip` when the JS fails to reveal the loaded iframe. Note also that the `clip` property is deprecated.
Lastly, when such a post embed iframe is rendered in an RSS feed, the `style` attribute is now removed using the HTML Tag Processor as opposed to using string replacement.
Fixes #58773 .
Props westonruter, joemcgill, swissspidy, joedolson, adamsilverstein.
Built from https://develop.svn.wordpress.org/trunk@58143
git-svn-id: http://core.svn.wordpress.org/trunk@57608 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-05-13 22:39:16 +00:00
..
2024-04-09 10:57:27 +00:00
2024-03-04 14:08:24 +00:00
2024-05-03 05:25:12 +00:00
2024-04-09 10:57:27 +00:00
2024-04-30 08:44:05 +00:00
2024-03-05 00:12:11 +00:00
2024-05-02 13:19:14 +00:00
2024-04-24 07:45:14 +00:00
2023-10-20 13:29:27 +00:00
2024-02-15 23:49:10 +00:00
2024-05-10 09:13:05 +00:00
2024-05-11 18:28:08 +00:00
2024-04-15 20:03:09 +00:00
2023-10-26 20:33:22 +00:00
2023-11-26 19:27:25 +00:00
2024-03-27 12:30:12 +00:00
2024-03-25 12:23:08 +00:00
2024-05-10 18:59:11 +00:00
2023-11-02 00:04:24 +00:00
2024-05-03 04:47:12 +00:00
2024-01-18 22:13:16 +00:00
2023-11-26 16:43:30 +00:00
2023-09-29 19:47:21 +00:00
2024-04-22 21:06:08 +00:00
2024-05-02 13:19:14 +00:00
2023-09-27 17:40:20 +00:00
2024-02-27 21:05:11 +00:00
2024-05-02 19:54:13 +00:00
2024-03-06 05:05:12 +00:00
2024-05-02 19:54:13 +00:00
2024-03-20 12:49:10 +00:00
2024-03-23 14:20:11 +00:00
2024-02-16 23:34:11 +00:00
2024-05-05 14:35:19 +00:00
2023-09-26 00:27:12 +00:00
2023-08-24 09:01:16 +00:00
2024-04-26 15:02:14 +00:00
2024-02-17 13:25:10 +00:00
2023-09-14 12:46:20 +00:00
2023-09-08 09:32:23 +00:00
2024-03-18 15:46:13 +00:00
2023-06-27 15:26:27 +00:00
2023-09-14 12:46:20 +00:00
2023-09-14 12:46:20 +00:00
2024-03-04 21:50:11 +00:00
2024-05-02 13:19:14 +00:00
2024-05-02 13:19:14 +00:00
2023-11-02 00:04:24 +00:00
2024-05-02 20:09:15 +00:00
2024-02-27 21:05:11 +00:00
2024-05-06 21:25:15 +00:00
2023-10-12 12:34:33 +00:00
2024-05-02 00:01:09 +00:00
2024-05-02 19:54:13 +00:00
2023-08-21 17:51:19 +00:00
2024-03-02 13:38:07 +00:00
2023-08-24 08:44:24 +00:00
2024-01-28 07:50:18 +00:00
2024-03-11 14:08:10 +00:00
2024-02-16 21:47:12 +00:00
2023-09-10 09:04:18 +00:00
2023-09-10 09:04:18 +00:00
2023-09-10 09:04:18 +00:00
2024-01-18 22:13:16 +00:00
2024-02-16 21:47:12 +00:00
2023-09-08 09:32:23 +00:00
2024-05-09 04:09:13 +00:00
2023-12-16 09:31:29 +00:00
2023-07-09 20:17:29 +00:00
2023-12-16 09:38:25 +00:00
2023-08-10 01:06:21 +00:00
2023-09-18 12:41:18 +00:00
2023-09-21 18:29:12 +00:00
2023-10-11 07:05:25 +00:00
2023-09-21 18:29:12 +00:00
2024-04-07 11:18:17 +00:00
2024-04-03 10:33:24 +00:00
2024-04-06 13:37:18 +00:00
2024-02-02 17:48:15 +00:00
2024-02-27 22:38:15 +00:00
2024-01-25 07:53:17 +00:00
2023-07-09 21:25:23 +00:00
2024-02-06 01:25:14 +00:00
2024-04-22 20:25:08 +00:00
2023-10-06 14:06:22 +00:00
2024-03-02 13:38:07 +00:00
2024-05-13 13:34:11 +00:00
2024-03-06 05:05:12 +00:00
2024-05-03 07:58:15 +00:00
2024-02-16 21:47:12 +00:00
2024-05-02 00:01:09 +00:00
2024-02-13 15:13:17 +00:00
2024-05-08 22:51:18 +00:00
2023-12-24 13:05:21 +00:00
2023-09-09 09:28:26 +00:00
2023-09-08 09:32:23 +00:00
2023-07-28 11:37:25 +00:00
2024-05-10 09:09:17 +00:00
2024-02-05 09:43:12 +00:00
2023-08-10 01:06:21 +00:00
2023-08-10 01:06:21 +00:00
2024-03-02 13:38:07 +00:00
2024-02-16 21:47:12 +00:00
2024-03-02 13:38:07 +00:00
2024-02-14 19:27:09 +00:00
2023-10-15 14:55:23 +00:00
2024-03-14 09:05:11 +00:00
2023-09-08 09:32:23 +00:00
2024-03-27 16:00:12 +00:00
2023-10-02 11:27:24 +00:00
2024-05-09 04:09:13 +00:00
2024-04-19 17:59:16 +00:00
2024-04-25 10:49:16 +00:00
2024-02-16 21:47:12 +00:00
2024-03-17 09:56:16 +00:00
2023-08-25 01:28:16 +00:00
2024-02-11 19:14:19 +00:00
2023-08-13 10:31:23 +00:00
2024-04-04 15:13:14 +00:00
2024-02-21 19:26:08 +00:00
2024-02-17 15:24:08 +00:00
2024-04-11 21:11:16 +00:00
2024-05-02 13:19:14 +00:00
2024-04-17 09:46:19 +00:00
2024-04-03 21:31:15 +00:00
2024-05-03 05:25:12 +00:00
2024-05-13 22:39:16 +00:00
2024-03-04 12:41:10 +00:00
2024-03-04 12:41:10 +00:00
2024-05-04 19:25:10 +00:00
2024-05-02 00:01:09 +00:00
2024-04-01 20:55:12 +00:00
2024-05-10 18:59:11 +00:00
2024-05-01 15:42:11 +00:00
2024-03-07 07:08:09 +00:00
2024-04-20 04:01:18 +00:00
2023-08-03 12:10:28 +00:00
2023-09-22 19:08:19 +00:00
2023-07-10 22:38:25 +00:00
2023-12-26 14:24:21 +00:00
2024-05-04 17:27:09 +00:00
2024-03-22 22:07:11 +00:00
2024-05-10 11:48:15 +00:00
2023-09-26 14:45:23 +00:00
2024-05-13 22:39:16 +00:00
2023-09-26 15:32:19 +00:00
2024-03-29 11:42:13 +00:00
2023-07-10 22:48:22 +00:00
2024-04-12 17:47:13 +00:00
2023-08-23 15:53:24 +00:00
2023-11-13 11:13:27 +00:00
2024-03-25 17:19:17 +00:00
2024-05-04 19:25:10 +00:00
2024-05-09 15:16:14 +00:00
2024-05-08 18:37:14 +00:00
2024-05-11 23:53:15 +00:00
2024-04-13 16:33:13 +00:00
2023-08-22 12:30:29 +00:00
2024-04-29 22:32:08 +00:00
2023-08-24 09:01:16 +00:00
2024-02-22 09:54:08 +00:00
2024-05-06 16:35:19 +00:00
2023-07-11 11:15:27 +00:00
2024-01-28 08:19:17 +00:00
2024-04-10 14:42:17 +00:00
2024-04-23 12:38:14 +00:00
2024-02-22 15:53:13 +00:00
2024-05-03 04:47:12 +00:00
2024-05-06 16:35:19 +00:00
2023-10-01 00:22:27 +00:00
2024-02-21 19:26:08 +00:00
2023-12-08 06:32:24 +00:00
2023-10-13 17:21:22 +00:00
2024-03-27 16:00:12 +00:00
2024-04-12 17:47:13 +00:00
2023-09-12 15:23:18 +00:00
2024-05-01 23:44:12 +00:00
2024-04-04 13:40:06 +00:00
2024-05-13 22:39:16 +00:00
2024-01-28 08:19:17 +00:00