Skip to content

[BUGFIX] Render rules in line and column number order #1059

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 3 commits into from
Mar 3, 2025

Conversation

oliverklee
Copy link
Collaborator

@oliverklee oliverklee commented Mar 3, 2025

Fixes #1052
Closes #1058

@coveralls
Copy link

coveralls commented Mar 3, 2025

Coverage Status

coverage: 55.726% (+0.08%) from 55.643%
when pulling 5f2525d on bugfix/rule-order-functional-without-parsing
into bd4e549 on main.

@oliverklee oliverklee force-pushed the bugfix/rule-order-functional-without-parsing branch from 3332640 to 149d5ea Compare March 3, 2025 20:29
Copy link
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.

This seems to work. I had overlooked a couple of things:

  • RuleSet::addRule() automatically sets the line number to one more than the previous highest, so they don't need setting explicitly;
  • The values can be simply set a strings, and don't need the creation of Value objects.

If you change the PR number in the changelog, and review my other comment to double-check, I'd be happy for this to supersede #1058.

@oliverklee oliverklee force-pushed the bugfix/rule-order-functional-without-parsing branch from 149d5ea to 5f2525d Compare March 3, 2025 22:54
@oliverklee oliverklee marked this pull request as ready for review March 3, 2025 22:54
@oliverklee oliverklee requested a review from JakeQZ March 3, 2025 22:54
@JakeQZ JakeQZ merged commit 44f1b25 into main Mar 3, 2025
21 checks passed
@JakeQZ JakeQZ deleted the bugfix/rule-order-functional-without-parsing branch March 3, 2025 23:16
@oliverklee
Copy link
Collaborator Author

@JakeQZ Should we backport this? What do you think?

@JakeQZ
Copy link
Collaborator

JakeQZ commented Mar 3, 2025

@JakeQZ Should we backport this? What do you think?

Probably good to backport bugfixes of behavioural bugs, since 9,0 may be some time away...

oliverklee added a commit that referenced this pull request Mar 4, 2025
oliverklee added a commit that referenced this pull request Mar 4, 2025
oliverklee added a commit that referenced this pull request Mar 4, 2025
oliverklee added a commit that referenced this pull request Mar 4, 2025
oliverklee added a commit that referenced this pull request Mar 4, 2025
JakeQZ pushed a commit that referenced this pull request Mar 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CSS properties order
3 participants