CSS设置是否在说:现在没有等效于aria-hidden ="true"? [英] Is the css setting speak:none now equivalent to aria-hidden="true"?

查看:476
本文介绍了CSS设置是否在说:现在没有等效于aria-hidden ="true"?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只是想知道我是否应该期望浏览器和辅助技术在2015年1月左右以等同于设置aria-hidden ="true"的方式使用talk:none.我想指出一些半不透明的文本应该被忽略,并且想知道我是否可以在一个操作中做到这一点(只需添加一个设置不透明样式并说出话的类:none,而不是添加该类并设置aria隐藏属性).

I'm just wondering whether I should expect browsers and assistive technilogy circa January 2015 to use speak:none in a manner equivalent to setting aria-hidden="true". I'd like to indicate that some semi-opaque text should be ignored, and am wondering whether I can do it in one operation (just adding a class that sets the opaque style and speak:none, rather than adding the class and setting the aria-hidden attribute).

推荐答案

对于speak的支持,似乎没有可靠的数据,但似乎没有实现.

There does not seem to be reliable data on support to speak, but it seems to be unimplemented.

speak: none与实现状态无关,等同于aria-hidden="true".

Independently of the implementation status, speak: none is not equivalent to aria-hidden="true".

根据CSS语音模块CR, speak 属性确定是否以听觉方式呈现文本",即听得到.

According to the CSS Speech Module CR, the speak property "determines whether or not to render text aurally", i.e. audibly.

根据ARIA规范, aria-hidden 表示元素及其所有后代对作者所实施的任何用户不可见或可感知"

According to the ARIA specification, aria-hidden "indicates that the element and all of its descendants are not visible or perceivable to any user as implemented by the author" (italic in the original).

因此,aria-hidden="true"不会导致任何事情;它只是声明作者已经隐藏了该元素.而且它涉及所有类型的渲染:听觉,可见,触觉或将来可能发明的任何形式.

Thus, aria-hidden="true" does not cause anything; it just declares that the author has hidden the element. And it relates to all kinds of rendering: audible, visible, tactile, or whatever modalities might be invented in the future.

这篇关于CSS设置是否在说:现在没有等效于aria-hidden ="true"?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆