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

Adding PX comment to G18 and G145. #189

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions wcag20/sources/techniques/general/G145.xml
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
<p>The objective of this technique is to make sure that users can read text <p>The objective of this technique is to make sure that users can read text
that is presented over a background. This technique relaxes the 4.5:1 that is presented over a background. This technique relaxes the 4.5:1
contrast ratio requirement for text that is at least 18 point (if not bold) or at least 14 point (if bold).</p> contrast ratio requirement for text that is at least 18 point (if not bold) or at least 14 point (if bold).</p>
<note>
<p>The point size should be obtained from the user agent, or calculated based on font metrics as the user agent does when evaluating this success criterion. Point sizes are based on the CSS pt size <loc ref="https://www.w3.org/TR/css3-values/#absolute-lengths">CSS3 Values</loc>. The ratio between sizes in points and CSS pixels is 1pt = 1.333px, therefore 14pt and 18pt are equivalent to approximately 18.5px and 24px.</p>
</note>
<p>If the background is a solid color (or all black or all white) then the <p>If the background is a solid color (or all black or all white) then the
contrast ratio of the larger-scale text can be maintained by making sure that each contrast ratio of the larger-scale text can be maintained by making sure that each
of the text letters have a 3:1 contrast ratio with the background.</p> of the text letters have a 3:1 contrast ratio with the background.</p>
Expand Down
3 changes: 3 additions & 0 deletions wcag20/sources/techniques/general/G18.xml
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
<description> <description>
<p>The objective of this technique is to make sure that users can read text <p>The objective of this technique is to make sure that users can read text
that is presented over a background. For Success Criterion 1.4.3, this technique describes the minimum contrast ratio for text that is less than 18 point (if not bold) and less than 14 point (if bold). For Success Criterion 1.4.5, this technique relaxes the 7:1 contrast ratio requirement for text that is at least 18 point (if not bold) or at least 14 point (if bold).</p> that is presented over a background. For Success Criterion 1.4.3, this technique describes the minimum contrast ratio for text that is less than 18 point (if not bold) and less than 14 point (if bold). For Success Criterion 1.4.5, this technique relaxes the 7:1 contrast ratio requirement for text that is at least 18 point (if not bold) or at least 14 point (if bold).</p>
<note>
<p>The point size should be obtained from the user agent, or calculated based on font metrics as the user agent does when evaluating this success criterion. Point sizes are based on the CSS pt size <loc ref="https://www.w3.org/TR/css3-values/#absolute-lengths">CSS3 Values</loc>. The ratio between sizes in points and CSS pixels is 1pt = 1.333px, therefore 14pt and 18pt are equivalent to approximately 18.5px and 24px.</p>
</note>
<p>If the background is a solid color (or all black or all white) then the <p>If the background is a solid color (or all black or all white) then the
relative luminance of the text can be maintained by making sure that each relative luminance of the text can be maintained by making sure that each
of the text letters have 4.5:1 contrast ratio with the background.</p> of the text letters have 4.5:1 contrast ratio with the background.</p>
Expand Down