text spacing bookmarklet

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)

Edit this on codepen

Last updated 6th September 2021, now traverses shadow dom, thanks to @shoffing

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 7 October 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 and Jon Gibbins