Skip to content

[TASK] Rename Rule\Rule to Property\Declaration#1508

Merged
oliverklee merged 2 commits intomainfrom
task/rename-rule
Feb 12, 2026
Merged

[TASK] Rename Rule\Rule to Property\Declaration#1508
oliverklee merged 2 commits intomainfrom
task/rename-rule

Conversation

@JakeQZ
Copy link
Collaborator

@JakeQZ JakeQZ commented Feb 12, 2026

A property declaration is not a rule.

Ref: https://developer.mozilla.org/en-US/docs/Web/API/CSS_Object_Model/CSS_Declaration

Add a class_alias to avoid a breaking change, and deprecate the original class name.

A property declaration is not a rule.

Ref: https://developer.mozilla.org/en-US/docs/Web/API/CSS_Object_Model/CSS_Declaration

Add a `class_alias` to avoid a breaking change, and deprecate the original
class name.
@JakeQZ JakeQZ requested a review from oliverklee February 12, 2026 14:10
@JakeQZ JakeQZ self-assigned this Feb 12, 2026
@JakeQZ JakeQZ added cleanup deprecation A method, property, or some functionality has been deprecated. refactor For PRs that refactor code without changing functionality labels Feb 12, 2026
@coveralls
Copy link

coveralls commented Feb 12, 2026

Coverage Status

coverage: 72.779% (-0.03%) from 72.813%
when pulling d89df80 on task/rename-rule
into 1ce3447 on main.

@JakeQZ
Copy link
Collaborator Author

JakeQZ commented Feb 12, 2026

I did git mv for the main class file, but had to replace it for the class_alias, so GitHub is not showing the diffs as it should :/

Copy link
Collaborator

@oliverklee oliverklee left a comment

Choose a reason for hiding this comment

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

… and we also should rename the tests change change them to use the new class. (I'd also be fine with doing that in a follow-up PR).

@JakeQZ
Copy link
Collaborator Author

JakeQZ commented Feb 12, 2026

… and we also should rename the tests change change them to use the new class. (I'd also be fine with doing that in a follow-up PR).

I was planning to do that in follow-up PRs - we won't be able to remove the deprecated class until that's done.

@JakeQZ JakeQZ requested a review from oliverklee February 12, 2026 14:58
@oliverklee oliverklee merged commit 802cebe into main Feb 12, 2026
24 checks passed
@oliverklee oliverklee deleted the task/rename-rule branch February 12, 2026 15:00
JakeQZ added a commit that referenced this pull request Feb 12, 2026
oliverklee pushed a commit that referenced this pull request Feb 12, 2026
JakeQZ added a commit that referenced this pull request Feb 12, 2026
This replaces `Rule\Rule`, following #1508.
oliverklee pushed a commit that referenced this pull request Feb 12, 2026
This replaces `Rule\Rule`, following #1508.
JakeQZ added a commit that referenced this pull request Feb 13, 2026
JakeQZ added a commit that referenced this pull request Feb 13, 2026
oliverklee pushed a commit that referenced this pull request Feb 13, 2026
This replaces `Rule\Rule`, following #1508.
JakeQZ added a commit that referenced this pull request Feb 13, 2026
This replaces `Rule\Rule`, following #1508.

Also use `getPropertyName()` rather than `getRule()` which was deprecated in

This covers both the 'functional' and 'unit' flavours of the `TestCase`, and
the trait that does most of the heavy lifting for the 'unit' flavour.
JakeQZ added a commit that referenced this pull request Feb 13, 2026
This replaces `Rule\Rule`, following #1508.

Also use `getPropertyName()` rather than `getRule()` which was deprecated
in #1506.

This covers both the 'functional' and 'unit' flavours of the `TestCase`, and
the trait that does most of the heavy lifting for the 'unit' flavour.
JakeQZ added a commit that referenced this pull request Feb 13, 2026
JakeQZ added a commit that referenced this pull request Feb 13, 2026
This replaces `Rule\Rule`, following #1508.
JakeQZ added a commit that referenced this pull request Feb 13, 2026
This replaces `Rule\Rule`, following #1508.
JakeQZ added a commit that referenced this pull request Feb 13, 2026
oliverklee pushed a commit that referenced this pull request Feb 14, 2026
oliverklee pushed a commit that referenced this pull request Feb 14, 2026
This replaces `Rule\Rule`, following #1508.
oliverklee pushed a commit that referenced this pull request Feb 14, 2026
This replaces `Rule\Rule`, following #1508.
oliverklee pushed a commit that referenced this pull request Feb 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cleanup deprecation A method, property, or some functionality has been deprecated. refactor For PRs that refactor code without changing functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants