我所有的字体大小都以像素为单位定义,例如
body {
font-size: 14px;
}
h1 {
font-size: 42px;
}
其中一位在线 Section 508/WCAG 2.0 Level AA 兼容性检查员建议我将其替换为相对单位,以便通过浏览器增加字体大小的人可以访问它。这是真正需要遵循的要求吗?我怀疑,因为其他在线检查器都没有这样建议我(尽管我知道并不总是可以自动测试它)。
最佳答案
据我所知,508 没有明确要求字体大小可以调整,但是专家明确建议允许调整字体大小。尼尔森says :
Let Users Control Font Size: Tiny text tyrannizes users by dramatically reducing task throughput. IE4 had a great UI that let users easily change font sizes; let's get this design back in the next generation of browsers.
在这条线上,Section 508 § 1194.21(g)状态:
Applications shall not override user selected contrast and color selections and other individual display attributes
包括字体大小并与 WCAG text resize success criterion 兼容那:
The author's responsibility is to create Web content that does not prevent the user agent from scaling the content effectively
只要您不禁止调整文本大小(例如使用文本图像或使用 text-resize-adjust
CSS ),就可以了。但是,归根结底,使用 relative font size提供更好的文本大小调整体验,其中不仅包括字体大小,还包括换行等属性。
出于这些原因,我认为相对字体大小对美学很重要,但对可访问性并不重要。
关于html - 具有相关单位以确保第 508 节/WCAG 2.0 AA 级兼容性是否重要?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40308548/