Skip to content

fix(w3c): match CSS selectors used in base.css#5160

Merged
marcoscaceres merged 10 commits into
speced:mainfrom
daniel-montalvo:fix-basecss-classes
Apr 19, 2026
Merged

fix(w3c): match CSS selectors used in base.css#5160
marcoscaceres merged 10 commits into
speced:mainfrom
daniel-montalvo:fix-basecss-classes

Conversation

@daniel-montalvo

@daniel-montalvo daniel-montalvo commented Mar 31, 2026

Copy link
Copy Markdown
Collaborator

Hi @marcoscaceres @sideshowbarker can you take a look at this one?

It contains a couple more mismatched selectors for revised recommendations that I forgot about in #5149

@daniel-montalvo daniel-montalvo self-assigned this Mar 31, 2026
@daniel-montalvo daniel-montalvo changed the title Fix basecss classes fix(w3c/sotd and w3c/headers): match CSS selectors used in base.css Mar 31, 2026
@sidvishnoi sidvishnoi changed the title fix(w3c/sotd and w3c/headers): match CSS selectors used in base.css fix(w3c): match CSS selectors used in base.css Apr 1, 2026
@sidvishnoi sidvishnoi requested a review from marcoscaceres April 1, 2026 08:34
@marcoscaceres marcoscaceres requested a review from Copilot April 7, 2026 01:08

Copilot AI 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.

Pull request overview

This PR aligns the W3C SoTD and header logic with the CSS class selectors used by W3C’s base.css for revised Recommendations, specifically around distinguishing candidate vs proposed additions/corrections.

Changes:

  • Update SoTD logic to detect candidate additions/corrections using .addition:not(.proposed) / .correction:not(.proposed).
  • Update W3C header validation logic to use .addition.proposed / .correction.proposed (and exclude .proposed when checking for non-proposed revisions).

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
src/w3c/templates/sotd.js Fixes revision-detection selectors to distinguish proposed vs candidate changes.
src/w3c/headers.js Updates revision-related selectors for updatable REC validations to match the class conventions.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/w3c/headers.js

@marcoscaceres marcoscaceres 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.

See what co-pilot said

@daniel-montalvo daniel-montalvo requested a review from Copilot April 13, 2026 11:55

Copilot AI 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.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/w3c/headers.js Outdated
Comment thread src/w3c/headers.js

Copilot AI 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.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/w3c/headers.js
@marcoscaceres

Copy link
Copy Markdown
Contributor

Unfortunately copilot won’t do cross org fixes, but I can get it to suggest changes/fixes if that helps.

@copilot can you review again and suggest fixes inline?

@marcoscaceres marcoscaceres self-requested a review April 14, 2026 18:04
@daniel-montalvo daniel-montalvo dismissed marcoscaceres’s stale review April 15, 2026 10:24

I created tests yesterday and pushed them in c752869

@marcoscaceres marcoscaceres requested a review from Copilot April 15, 2026 15:36

Copilot AI 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.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/w3c/templates/sotd.js
Comment thread tests/spec/w3c/headers-spec.js
@marcoscaceres marcoscaceres merged commit 8931814 into speced:main Apr 19, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants