Skip to content

Remove redundant UA CSS requirement#2531

Open
scottaohara wants to merge 4 commits intomainfrom
so-2521
Open

Remove redundant UA CSS requirement#2531
scottaohara wants to merge 4 commits intomainfrom
so-2521

Conversation

@scottaohara
Copy link
Member

@scottaohara scottaohara commented May 10, 2025

🚀 Netlify Preview:
🔄 this PR updates the following sspecs:

closes #2521

removes the following from the spec:

If a CSS selector includes a WAI-ARIA attribute (e.g.,
input[aria-invalid="true"]
), user agents MUST update the visual display of any elements matching (or no longer matching) the selector any time the attribute is added/changed/removed in the DOM.

as CSS already defines how UAs are to handle element/attribute selectors


Preview | Diff

@netlify
Copy link

netlify bot commented May 10, 2025

Deploy Preview for wai-aria ready!

Name Link
🔨 Latest commit 09e6f26
🔍 Latest deploy log https://app.netlify.com/sites/wai-aria/deploys/681f61ef184a240008a2add9
😎 Deploy Preview https://deploy-preview-2531--wai-aria.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@scottaohara
Copy link
Member Author

i know the issue is marked for discussion in an upcoming ARIA editor's meeting. We can discuss this PR / what may need to change about it then as well. cc @pkra

@pkra
Copy link
Member

pkra commented May 12, 2025

If we remove this, we should also remove the normative statement in 8.7.

I think it would be good to keep a note on the general topic anyway, with a link to somewhere in CSS where these normative statements are made.

I put it on the editors' agenda because I've been wondering about what "supporting host languages" means these days, i.e. what does ARIA expect from a "supporting host language"?

@pkra pkra self-assigned this May 15, 2025
@pkra
Copy link
Member

pkra commented May 15, 2025

From our conversation: I'll update the PR to rewrite the second occurrence to make a reference https://drafts.csswg.org/selectors/#attribute-selectors (via xref https://respec.org/xref/?term=attribute+selector).

@scottaohara scottaohara marked this pull request as draft May 15, 2025 13:44
@spectranaut spectranaut moved this from All PRS to Draft in ARIA Normative PR Tracking Jun 13, 2025
closes #2521

removes the following from the spec:
>If a CSS selector includes a WAI-ARIA attribute (e.g.,
input[aria-invalid="true"]
), user agents MUST update the visual display of any elements matching (or no longer matching) the selector any time the attribute is added/changed/removed in the DOM.

as CSS already defines how UAs are to handle element/attribute selectors
@netlify
Copy link

netlify bot commented Mar 2, 2026

Deploy Preview for wai-aria ready!

Name Link
🔨 Latest commit 22301b7
🔍 Latest deploy log https://app.netlify.com/projects/wai-aria/deploys/69aaee0caf4f2c0008222f47
😎 Deploy Preview https://deploy-preview-2531--wai-aria.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@github-actions
Copy link
Contributor

github-actions bot commented Mar 2, 2026

🚀 Deployed on https://deploy-preview-2531--wai-aria.netlify.app

@github-actions github-actions bot temporarily deployed to pull request March 2, 2026 16:30 Inactive
- Section 4.2: updates to link to selectors-4
- Section 8.7: replaces normative language with Note, referencing selectors-4
@pkra pkra marked this pull request as ready for review March 2, 2026 16:55
@github-actions github-actions bot temporarily deployed to pull request March 2, 2026 16:56 Inactive
@pkra
Copy link
Member

pkra commented Mar 2, 2026

@scottaohara I finally got around to this. What do you think of the additional change?

@pkra
Copy link
Member

pkra commented Mar 2, 2026

FWIW at some point I wondered why it's not ok to have a normative requirement from the ARIA end - "if you support some parts of CSS as well as ARIA, you MUST support selectors-4". That kind of thing seems like a legitimate requirement for ARIA. But it's also irrelevant in this particular case (since attribute selectors are universally supported).

Copy link
Member

@annevk annevk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@annevk
Copy link
Member

annevk commented Mar 3, 2026

FWIW at some point I wondered why it's not ok to have a normative requirement from the ARIA end

This is not okay because we should not duplicate requirements. That often results in confusion and makes people misinterpret what is actually required. It's fine to point out it is required elsewhere through a note or statement of fact, but duplicating conformance criteria is an anti-pattern.

@pkra
Copy link
Member

pkra commented Mar 3, 2026

This is not okay because we should not duplicate requirements.

What I was trying to describe was not a duplication.

@annevk
Copy link
Member

annevk commented Mar 3, 2026

Oh sorry, I misread. I agree you could do that, but I'm not sure it's useful.

@spectranaut spectranaut self-requested a review March 5, 2026 18:13
Copy link
Contributor

@spectranaut spectranaut left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, apply the suggestion from anne first?

Co-authored-by: Anne van Kesteren <[email protected]>
@github-actions github-actions bot temporarily deployed to pull request March 6, 2026 08:57 Inactive
the spec already had the note saying that this section could be removed in a future version....
@github-actions github-actions bot temporarily deployed to pull request March 6, 2026 15:10 Inactive
@pkra pkra removed their assignment Mar 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Development

Successfully merging this pull request may close these issues.

Duplicates requirements of Selectors

4 participants