了解 WCAG 2.0 - 标准 1.4.8
我无法理解 WCAG 2.0 标准 1.4.8。
据我了解,它基本上是说,如果我有一个
,我在其中定义了背景和文本颜色,我将必须:- 为该 div 提供一个颜色选择器工具,以便用户可以更改这些颜色
- “G156:使用一种具有常用用户代理的技术,可以更改文本块的前景和背景”
提供颜色选择器听起来很牵强,所以我把希望寄托在“G156”。常规 Web 浏览器(即 firefox、opera 等)是否有资格作为这样的用户代理?
另一个令人困惑的部分是“常见失败”,其中写着“F24:由于指定前景色而不指定背景色而导致成功标准 1.4.3、1.4.6 和 1.4.8 失败,反之亦然”,我将其解释为“只要您指定该 div 的背景和文本颜色,您的安全”。
对于如何解释 WCAG 标准有什么想法吗?
I'm having trouble understanding the WCAG 2.0 criteria 1.4.8.
From what I understand it basically says that if I have for example a <div>
that I define both background and text color in, I will have to either:
- Provide a color picker tool for that div so that the user can change those colors
- "G156: Using a technology that has commonly-available user agents that can change the foreground and background of blocks of text"
Providing a color picker sounds pretty far fetched, so I'm placing my hopes on "G156". Does a regular web browser (ie,firefox,opera etc.) qualify as such an user agent?
Another confusing part is the "common failure" where it says "F24: Failure of Success Criterion 1.4.3, 1.4.6 and 1.4.8 due to specifying foreground colors without specifying background colors or vice versa", which I sort of interpret as "as long as you specify both background and text color for that div, your safe".
Any thoughts on how to interpret this WCAG criteria?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
根据 http://www.w3.org/TR/2010 /NOTE-WCAG20-TECHS-20101014/G156,看来是这样。它说:
我这么认为。这意味着不要仅仅假设背景是白色的,因为如果您没有明确指定它,它可能不是白色的。
According to http://www.w3.org/TR/2010/NOTE-WCAG20-TECHS-20101014/G156, it seems so. It says:
I think so. It means don't just assume the background is white, because if you don't explicitly specify it, it might not be.