Skip to content
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

Custom properties, conditional and property rules, CSS-wide keywords, calc() and attr() #114

Merged
merged 1 commit into from
Oct 8, 2024

Conversation

carlosame
Copy link
Member

Add native supports for several CSS improvements, which until now required the use of the Transcoder Helper, but now are available out-of-the-box.

  • Custom properties (var() function).

  • The @property rule (registered custom properties).

  • @supports rules.

  • Media Queries level 4, including the prefers-color-scheme media feature. As a result, the KEY_PREFERS_COLOR_SCHEME transcoding hint was added.

  • calc() expressions.

  • The initial, unset and revert CSS-wide keywords (this being SVG, revert is currently handled as unset).

  • Initial support for the advanced attr() value that Google Chrome intends to support soon (currently at prototype level).

In addition to this, it implements a true resolution concept: the resolution is no longer used in CSS unit conversions, matching the behaviour of web browsers. That resolution is also available to CSS Media Queries. To make it available to the transcoder, the KEY_RESOLUTION_DPI transcoding hint was added.

The old KEY_PIXEL_UNIT_TO_MILLIMETER transcoding hint can still be used, but is no longer used in CSS unit conversions (only in the encoding phase).

@carlosame carlosame added the enhancement New feature or request label Oct 7, 2024
@carlosame carlosame added this to the 2.0 milestone Oct 7, 2024
@carlosame carlosame force-pushed the fe-custom-properties branch from dcbab7a to bcb8b7f Compare October 8, 2024 19:00
@carlosame carlosame merged commit 3788c12 into master Oct 8, 2024
5 checks passed
@carlosame carlosame deleted the fe-custom-properties branch October 8, 2024 19:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant