Custom properties, conditional and property rules, CSS-wide keywords, calc() and attr() #114
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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, theKEY_PREFERS_COLOR_SCHEME
transcoding hint was added.calc()
expressions.The
initial
,unset
andrevert
CSS-wide keywords (this being SVG,revert
is currently handled asunset
).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).