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

Potential need for a new CSS pseudo-class for role matching #32

Closed
jnurthen opened this issue Jan 11, 2019 · 4 comments
Closed

Potential need for a new CSS pseudo-class for role matching #32

jnurthen opened this issue Jan 11, 2019 · 4 comments
Labels

Comments

@jnurthen
Copy link
Member

From @therealglazou on December 29, 2016 11:39

Testing in CSS an epub:type fallback for an absent role attribute is a bit cumbersome. Such a selector would be in the form of (for a cell role):

[epub|type="cell"]:not([role]) {
   ...
}

and it would require a namespace at-rule:

@namespace epub "http://www.idpf.org/2007/ops";

Maybe a new :role() pseudo-class is needed here to ease the pain and deal automagically with that fallback; some UAs could look only at role to resolve it while EPUB Agents would also deal with the epub:type fallback. Just thinking out loud here.... That would of course require joint work with the CSS WG.

Copied from original issue: w3c/aria#506

@jnurthen
Copy link
Member Author

From @AmeliaBR on December 29, 2016 15:41

There is definitely a need for an API to access the computed role of an element. The role itself can have fallback values, and values that are dis-allowed because of native semantics, and of course default roles based on semantics. A CSS pseudo-class has the benefit of exposing this information to both scripts and declarative styling.

@jnurthen
Copy link
Member Author

@IanPouncey something for the CSS Accessibility Task Force to consider?

@digilou
Copy link
Contributor

digilou commented Jan 27, 2021

APA has created an issue for the CSS-WG to see where this conversation needs to go.

@astearns
Copy link
Member

Please use this older issue for the csswg: w3c/csswg-drafts#3596

@digilou digilou closed this as completed Feb 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants