Skip to content

[TASK] Add interface RuleContainer for RuleSet #1256

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 10, 2025

Conversation

JakeQZ
Copy link
Collaborator

@JakeQZ JakeQZ commented May 9, 2025

This covers the maniplation of Rules within the container, and may be implemented by other classes in future (e.g. #1194).

Note that the naming is consistent with the current codebase, rather than what the CSS entities are now called:

  • Rule represents what is now called a "declaration";
  • RuleSet represents what is now called a "declaration block";
  • DeclarationBlock represents what is now called a "style rule";
  • CSSListItem (closely) represents what is now generically called a "rule".

Renaming things is part of a longer-term plan touched on in #1189.

@JakeQZ JakeQZ requested a review from oliverklee May 9, 2025 23:46
@JakeQZ JakeQZ self-assigned this May 9, 2025
@JakeQZ JakeQZ added the refactor For PRs that refactor code without changing functionality label May 9, 2025
@coveralls
Copy link

coveralls commented May 9, 2025

Coverage Status

coverage: 57.038%. remained the same
when pulling 6c4065b on task/rulecontainer-interface
into bddb086 on main.

This covers the maniplation of `Rule`s within the container,
and may be implemented by other classes in future (e.g. #1194).

Note that the naming is consistent with the current codebase,
rather than what the CSS entities are now called:
- `Rule` represents what is now called a "declaration";
- `RuleSet` represents what is now called a "declaration block";
- `DeclarationBlock` represents what is now called a "style rule";
- `CSSListItem` (closely) represents what is now generically called a "rule".

Renaming things is part of a longer-term plan touched on in #1189.
@JakeQZ JakeQZ force-pushed the task/rulecontainer-interface branch from ffa66d9 to 6c4065b Compare May 10, 2025 00:22
@oliverklee oliverklee merged commit 8587712 into main May 10, 2025
21 checks passed
@oliverklee oliverklee deleted the task/rulecontainer-interface branch May 10, 2025 08:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactor For PRs that refactor code without changing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants