Skip to content

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

Description

@ozross

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions