Skip to content

Remove redundant UA CSS requirement - #2531

Merged
pkra merged 4 commits into
mainfrom
so-2521
Apr 9, 2026
Merged

Remove redundant UA CSS requirement#2531
pkra merged 4 commits into
mainfrom
so-2521

Conversation

@scottaohara

@scottaohara scottaohara commented May 10, 2025

Copy link
Copy Markdown
Member

🚀 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

netlify Bot commented May 10, 2025

Copy link
Copy Markdown

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
Copy Markdown
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

pkra commented May 12, 2025

Copy link
Copy Markdown
Member

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

pkra commented May 15, 2025

Copy link
Copy Markdown
Member

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

netlify Bot commented Mar 2, 2026

Copy link
Copy Markdown

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

github-actions Bot commented Mar 2, 2026

Copy link
Copy Markdown
Contributor

🚀 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

pkra commented Mar 2, 2026

Copy link
Copy Markdown
Member

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

@pkra

pkra commented Mar 2, 2026

Copy link
Copy Markdown
Member

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).

@annevk annevk left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks!

Comment thread index.html Outdated
Comment thread index.html Outdated
@annevk

annevk commented Mar 3, 2026

Copy link
Copy Markdown
Member

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

pkra commented Mar 3, 2026

Copy link
Copy Markdown
Member

This is not okay because we should not duplicate requirements.

What I was trying to describe was not a duplication.

@annevk

annevk commented Mar 3, 2026

Copy link
Copy Markdown
Member

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

@spectranaut spectranaut left a comment

Copy link
Copy Markdown
Contributor

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 <annevk@annevk.nl>
@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
@pkra
pkra merged commit ecf4ff6 into main Apr 9, 2026
9 checks passed
@github-project-automation github-project-automation Bot moved this from Draft to Waiting For Implementation in ARIA Normative PR Tracking Apr 9, 2026
@pkra
pkra deleted the so-2521 branch April 9, 2026 07:56
github-actions Bot added a commit that referenced this pull request Apr 9, 2026
SHA: ecf4ff6
Reason: push, by pkra

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@spectranaut spectranaut moved this from Waiting For Implementation to Remaining implementations (post merge) in ARIA Normative PR Tracking Jul 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Remaining implementations (post merge)

Development

Successfully merging this pull request may close these issues.

Duplicates requirements of Selectors

4 participants