From 6f4346f5842caabb83745f0148193937c334de96 Mon Sep 17 00:00:00 2001 From: "elliot.nahman" Date: Tue, 11 Oct 2022 13:47:05 -0700 Subject: [PATCH] update bookmarklet to support iframes in shadow dom --- tests/tsbookmarklet.html | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/tests/tsbookmarklet.html b/tests/tsbookmarklet.html index 255c123..d7aba20 100644 --- a/tests/tsbookmarklet.html +++ b/tests/tsbookmarklet.html @@ -3,10 +3,10 @@ - + text spacing bookmarklet - - + + - +

text spacing bookmarklet

-

Last updated 3rd September 2021. Now recursively traverses through the Shadow DOM. Thanks to Steven A. Hoffing

+

Last updated 11th October 2022. It now handles iframes located within in a Shadow DOM. Thanks to Elliot Nahman

+

updated 3rd September 2021. Now recursively traverses through the Shadow DOM. Thanks to Steven A. Hoffing

updated 18th May 2021. Now toggles on/off (first time you run it, it adds the styles ... second time, it removes them again) Thanks to Patrick H. Lauke

updated 26th of March 2020. Now works on content inside same-origin first level iframes - i.e. it doesn't then work if there's an iframe inside another iframe. Thanks to Patrick H. Lauke

Quick and dirty testing of WCAG 2.1 Success Criterion 1.4.12 Text Spacing.

Experimental:use at own risk! -

Bookmarklet: Text Spacing (drag to bookmarklets bar or right click and save as bookmark) - +

Bookmarklet: Text Spacing (drag to bookmarklets bar or right click and save as bookmark) +

Edit this on codepen - - - - - + + + + +