Skip to content

fix(dom-fiber): support CSS custom properties (variables) in style prop - #167

Draft
1313 wants to merge 1 commit into
Mojang:mainfrom
1313:fix/css-custom-properties
Draft

fix(dom-fiber): support CSS custom properties (variables) in style prop#167
1313 wants to merge 1 commit into
Mojang:mainfrom
1313:fix/css-custom-properties

Conversation

@1313

@1313 1313 commented Jan 23, 2026

Copy link
Copy Markdown

CSS variables like '--my-color' require setProperty() instead of direct assignment. Added setStyleValue helper that uses setProperty for -- prefixed keys while keeping fast direct assignment for standard camelCase properties.

@1313
1313 force-pushed the fix/css-custom-properties branch from 32bd70b to cab3fe0 Compare January 23, 2026 09:43
CSS variables like '--my-color' require setProperty() instead of direct
assignment. Added setStyleValue helper that uses setProperty for -- prefixed
keys while keeping fast direct assignment for standard camelCase properties.
@1313
1313 force-pushed the fix/css-custom-properties branch from cab3fe0 to bc39a17 Compare January 23, 2026 12:52
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.

1 participant