Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a tool to check 1-4-12 criterion (WCAG 2.1) #325

Closed
PigeardSylvain opened this issue Apr 17, 2018 · 3 comments
Closed

Add a tool to check 1-4-12 criterion (WCAG 2.1) #325

PigeardSylvain opened this issue Apr 17, 2018 · 3 comments

Comments

@PigeardSylvain
Copy link

Is it possible to add a tool to test 1-4-12 criterion from WCAG 2.1
Here is a quick bookmarklet example (need to be validate) :

javascript:s%20=%20document.createElement(%22style%22)%3Bs.setAttribute(%22type%22%2C%22text%2Fcss%22)%3Bt%3Ddocument.createTextNode(%22*%20%7Bline-height%3A%201.5!important%3B%20letter-spacing%3A.12em!important%3B%20word-spacing%3A%20.16em%20!important%3B%7D%20p%7Bmargin-bottom%3A%202em!important%3B%20%7D%22)%3Bs.appendChild(t)%3Bh%20%3D%20document.getElementsByTagName(%22head%22)%5B0%5D%3Bh.appendChild(s)%3Bvoid(0)%3B

Thanks

@ffoodd
Copy link
Owner

ffoodd commented May 24, 2018

Nice one, thanks :)

Before trying to implement this, here's a Steve Faulkner's post on the topic.

Definetely worh a try!

@notabene
Copy link
Collaborator

Refs: https://developer.paciellogroup.com/blog/2018/05/short-note-on-getting-spaced-out-with-sc-1-4-12-text-spacing/

@notabene
Copy link
Collaborator

notabene commented Apr 17, 2019

Commited the Text spacing code.

It works for me.

@ffoodd please:

  • test and confirm that we're OK
  • add localization strings (I can't remember where you add them, apologies — too long off the project I guess)
  • change version if everything is OK for you
  • document for future developments where localization strings must be added
  • package

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants