Skip to content

[TASK] Implement (At)RuleSet::getArrayRepresentation()#1580

Merged
JakeQZ merged 3 commits intomainfrom
task/array-rep/ruleset
Apr 29, 2026
Merged

[TASK] Implement (At)RuleSet::getArrayRepresentation()#1580
JakeQZ merged 3 commits intomainfrom
task/array-rep/ruleset

Conversation

@oliverklee
Copy link
Copy Markdown
Collaborator

Part of #1440.

@oliverklee oliverklee requested a review from JakeQZ April 26, 2026 10:21
@oliverklee oliverklee self-assigned this Apr 26, 2026
@oliverklee oliverklee added testing PRs/issues adding additional tests only, or primarily testing-focused developer-specific Issues that only affect maintainers, contributors, and people submitting PRs labels Apr 26, 2026
@oliverklee oliverklee changed the title [TASK] Implement RuleSet::getArrayRepresentation() [TASK] Implement (At)RuleSet::getArrayRepresentation() Apr 26, 2026
@oliverklee oliverklee force-pushed the task/array-rep/ruleset branch from c169f93 to 8f53b51 Compare April 26, 2026 10:31
@coveralls
Copy link
Copy Markdown

coveralls commented Apr 26, 2026

Coverage Status

coverage: 73.324% (+0.1%) from 73.177% — task/array-rep/ruleset into main

@oliverklee oliverklee force-pushed the task/array-rep/ruleset branch from 8f53b51 to f7e2c04 Compare April 27, 2026 07:10
Copy link
Copy Markdown
Collaborator

@JakeQZ JakeQZ left a comment

Choose a reason for hiding this comment

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

I got a bit confused because there can be multiple values defined for a single property, e.g.

font-size: 16px;
font-size: 1rem; /* for browsers that support `rem` units */

So I think the loop variable for the property value should be pluralized. Otherwise looks fine. (We already have tests for Declaration::getArrayRepresentation(), so don't need to provide property values in the tests for (At)RuleSet.)

I assume there will be a future PR to add the at-rule name to the array representation.

Comment thread src/RuleSet/RuleSet.php Outdated
oliverklee and others added 2 commits April 29, 2026 09:18
Co-authored-by: JakeQZ <jake.github@qzdesign.co.uk>
@oliverklee oliverklee force-pushed the task/array-rep/ruleset branch from 664633c to 779d500 Compare April 29, 2026 07:22
@oliverklee
Copy link
Copy Markdown
Collaborator Author

I assume there will be a future PR to add the at-rule name to the array representation.

I've added that now, together with the arguments.

@oliverklee oliverklee requested a review from JakeQZ April 29, 2026 07:23
@JakeQZ JakeQZ merged commit 8ad8565 into main Apr 29, 2026
24 checks passed
@JakeQZ JakeQZ deleted the task/array-rep/ruleset branch April 29, 2026 15:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

developer-specific Issues that only affect maintainers, contributors, and people submitting PRs testing PRs/issues adding additional tests only, or primarily testing-focused

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants