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

Apply CSS style class to the top-level structure nodes, below the root #7

Open
ozross opened this issue Apr 4, 2023 · 0 comments
Open

Comments

@ozross
Copy link

ozross commented Apr 4, 2023

WCAG 2.1 Level AA, Success Criterion 1.4.12 "Text Spacing" has 4 rules:

  • Line height (line spacing) to at least 1.5 times the font size;
  • Spacing following paragraphs to at least 2 times the font size;
  • Letter spacing (tracking) to at least 0.12 times the font size;
  • Word spacing to at least 0.16 times the font size.

The latter 3 are pretty standard. The 1st can be set with a CSS class dictionary associated to the highest-level non-root structure element(s). Also, text in the main HTML window should not be more than 800px wide.

DocStyles-CSS

texlive-vpat-titlepage.pdf

Example coding:

94 0 obj
<</Type/StructElem/S/Art
/ID (Art.1)
/P 91 0 R
/K [  101 0 R
 ]
/Pg 90 0 R
 /C [/DocStyles]/A  14 0 R
/T (LaTeX Article)>>
endobj

ClassMap extract: incl. classes for alignment of h1 , h2 , h3 headings in HTML

 /DocStyles 82 0 R
 /DocStyles#20h1 83 0 R
 /DocStyles#20h2 84 0 R
 /DocStyles#20h3 84 0 R
82 0 obj
<< /O /CSS-3.00/display /block /width (800px) /margin /auto /padding (0px 0px) /line-height (1.5) >>
endobj
83 0 obj
<< /O /CSS-3.00/text-align /center >>
endobj
84 0 obj
<< /O /CSS-3.00/text-align /left >>
endobj
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant