Skip to content

Enable layout.css.properties-and-values.enabled#293

Merged
Loirooriol merged 1 commit intoservo:mainfrom
yezhizhen:test-property
Jan 31, 2026
Merged

Enable layout.css.properties-and-values.enabled#293
Loirooriol merged 1 commit intoservo:mainfrom
yezhizhen:test-property

Conversation

@yezhizhen
Copy link
Copy Markdown
Member

@yezhizhen yezhizhen commented Jan 25, 2026

This will add support for @property rules.

Servo Companion: servo/servo#42136

Note that registered properties don't animate correctly: #38

Copy link
Copy Markdown
Collaborator

@Loirooriol Loirooriol left a comment

Choose a reason for hiding this comment

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

This doesn't address servo/servo#41417 (comment)

@yezhizhen
Copy link
Copy Markdown
Member Author

This doesn't address servo/servo#41417 (comment)

But can't we leave it as a follow up? It is set as non-animatable in the fixup commits anyway, so shouldn't cause crash.

@yezhizhen
Copy link
Copy Markdown
Member Author

But can't we leave it as a follow up? It is set as non-animatable in the fixup commits anyway, so shouldn't cause crash.

https://github.com/servo/servo/actions/runs/21329329850

There is no crash thanks to the fixup you proposed. So it is good for now?

@Loirooriol
Copy link
Copy Markdown
Collaborator

As a rule of thumb , features shouldn't be enabled until they are properly implemented, because otherwise it defeats feature checking and it can end up breaking more than it fixes.

But we don't supports @supports at-rule(), so maybe it's fine.

Still, thinking long-term I would like to do these king of things with experimental flags, which I don't think is currently possible for Stylo static prefs.

@yezhizhen yezhizhen requested a review from mrobinson January 27, 2026 10:43
@yezhizhen yezhizhen force-pushed the test-property branch 4 times, most recently from b3455e6 to 148aefe Compare January 30, 2026 05:39
@yezhizhen
Copy link
Copy Markdown
Member Author

Force pushing now, as rn the branch is based on #298. This is to confirm servo/servo#42136 (comment).

github-merge-queue bot pushed a commit that referenced this pull request Jan 31, 2026
This reverts commit 9493c5f as hoping
to land #293 first.

FYI @lukewarlow
Signed-off-by: Euclid Ye <[email protected]>
@Loirooriol Loirooriol enabled auto-merge January 31, 2026 14:00
@Loirooriol Loirooriol added this pull request to the merge queue Jan 31, 2026
Merged via the queue into servo:main with commit 8577948 Jan 31, 2026
5 checks passed
@yezhizhen yezhizhen deleted the test-property branch January 31, 2026 14:06
github-merge-queue bot pushed a commit to servo/servo that referenced this pull request Jan 31, 2026
…able (#42136)

Many websites use Tailwind CSS script which utilizes registered custom
properties.
This PR makes such websites look as expected, such as #42129.

Before: 
<img width="485" height="120" alt="image"
src="https://github.com/user-attachments/assets/428000b1-eed1-4f10-bbf8-eca9e7b630f5"
/>

After:
<img width="487" height="82" alt="image"
src="https://github.com/user-attachments/assets/ab016cbf-9c00-4bd8-adc8-be28f13e42e5"
/>


Testing: Updated existing WPT results.
Fixes: #42129
Fixes: #41417 

Stylo Companion: servo/stylo#293

---------

Signed-off-by: Euclid Ye <[email protected]>
Loirooriol pushed a commit that referenced this pull request Feb 5, 2026
This reverts commit 9493c5f as hoping
to land #293 first.

FYI @lukewarlow
Loirooriol pushed a commit that referenced this pull request Feb 5, 2026
This will add support for `@property` rules.

Servo Companion: servo/servo#42136

Note that registered properties don't animate correctly: #38

Signed-off-by: Euclid Ye <[email protected]>
Loirooriol pushed a commit that referenced this pull request Feb 5, 2026
This reverts commit 9493c5f as hoping
to land #293 first.

FYI @lukewarlow
Loirooriol pushed a commit that referenced this pull request Feb 5, 2026
This will add support for `@property` rules.

Servo Companion: servo/servo#42136

Note that registered properties don't animate correctly: #38

Signed-off-by: Euclid Ye <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants