Enforce feature-CSS em-fallback rule with color and transition/animation exclusions#9471
Draft
Copilot wants to merge 6 commits into
Draft
Enforce feature-CSS em-fallback rule with color and transition/animation exclusions#9471Copilot wants to merge 6 commits into
Copilot wants to merge 6 commits into
Conversation
Agent-Logs-Url: https://github.com/refined-github/refined-github/sessions/7e59e3ea-de4f-4e8d-9134-dc5866495e46 Co-authored-by: fregante <1402241+fregante@users.noreply.github.com>
Agent-Logs-Url: https://github.com/refined-github/refined-github/sessions/7e59e3ea-de4f-4e8d-9134-dc5866495e46 Co-authored-by: fregante <1402241+fregante@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
fregante
May 15, 2026 14:04
View session
Agent-Logs-Url: https://github.com/refined-github/refined-github/sessions/69da0060-7e9a-43d7-8a37-8abbca9f697e Co-authored-by: fregante <1402241+fregante@users.noreply.github.com>
Agent-Logs-Url: https://github.com/refined-github/refined-github/sessions/69da0060-7e9a-43d7-8a37-8abbca9f697e Co-authored-by: fregante <1402241+fregante@users.noreply.github.com>
fregante
requested changes
May 15, 2026
Agent-Logs-Url: https://github.com/refined-github/refined-github/sessions/f61a32c6-738e-40b9-b39f-cbafdbc3f316 Co-authored-by: fregante <1402241+fregante@users.noreply.github.com>
Copilot
AI
changed the title
Add feature-CSS var() reporting rule with em fallback exceptions
Enforce feature-CSS em-fallback rule and exclude color vars/comments
May 15, 2026
fregante
requested changes
May 15, 2026
Agent-Logs-Url: https://github.com/refined-github/refined-github/sessions/7b68812c-d42c-4922-b0cb-a91f81847a81 Co-authored-by: fregante <1402241+fregante@users.noreply.github.com>
Copilot
AI
changed the title
Enforce feature-CSS em-fallback rule and exclude color vars/comments
Enforce feature-CSS em-fallback rule with color and transition/animation exclusions
May 15, 2026
fregante
reviewed
May 15, 2026
| z-index: 3; | ||
| top: calc( | ||
| var(--base-sticky-header-height, 0px) + | ||
| var(--base-sticky-header-height, 2.22em) + |
Member
There was a problem hiding this comment.
This rule is less straightforward to apply than the fuchsia one, it might need a number of hardcoded exceptions for non-length values
| /* Cover up the content seen through the rounded corners above */ | ||
| box-shadow: 0 | ||
| calc((var(--sticky-padding) + var(--borderRadius-medium)) * -1) 0 0 | ||
| calc((var(--sticky-padding) + var(--borderRadius-medium, 2.22em)) * -1) 0 0 |
Member
There was a problem hiding this comment.
And this one won't be particularly noticeable if missing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Test URLs
Screenshot
AI GOT NO EYES
What changed
This PR now reflects all review feedback:
refined-github/css-require-em-fallbackis enforced as error forsource/features/**/*.css.source/features/conventional-commits.cssis2.22em(replacing1px).--color-*,*Color-*, component color channels, and--rgh-*)transition*andanimation*)source/features/extend-diff-expander.csstransition fallback was reverted to valid timing values (0.2s/ease-in-out).Validation
eslint-rules/css-require-em-fallback.test.jseslint-rules/css-require-fuchsia-fallback.test.js