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

Make custom properties that are IACVT guaranteed-invalid (II) #28100

Merged
merged 1 commit into from
Mar 16, 2021

Conversation

chromium-wpt-export-bot
Copy link
Collaborator

@chromium-wpt-export-bot chromium-wpt-export-bot commented Mar 16, 2021

Per recent spec change [1], custom properties that are invalid at
computed-value time (IACVT) shall become guaranteed-invalid [2]
if the custom property supports guaranteed-invalid values.

In order to maintain our current animations behavior related to cycles
(see CSSVarCycleInterpolationType), we still need to be able to
distinguish between "cyclic" and "invalid for other reasons" from the
outside. These two situations are now represented by
CSSCyclicVariableValue and CSSInvalidVariableValue, respectively.

[1] w3c/csswg-drafts#6006
[2] https://drafts.csswg.org/css-variables/#guaranteed-invalid-value

Fixed: 1110188
I2S: https://groups.google.com/a/chromium.org/g/blink-dev/c/0xrbzYe_vxU/m/7bsL76n9CgAJ
Change-Id: I0e7b529e4ae595c6c327c45b4da1a43be64c1c88
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2762156
Reviewed-by: Xiaocheng Hu <xiaochengh@chromium.org>
Commit-Queue: Anders Hartvoll Ruud <andruud@chromium.org>
Cr-Commit-Position: refs/heads/master@{#863497}

Copy link
Collaborator

@wpt-pr-bot wpt-pr-bot left a comment

Choose a reason for hiding this comment

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

The review process for this patch is being conducted in the Chromium project.

Per recent spec change [1], custom properties that are invalid at
computed-value time (IACVT) shall become guaranteed-invalid [2]
if the custom property supports guaranteed-invalid values.

In order to maintain our current animations behavior related to cycles
(see CSSVarCycleInterpolationType), we still need to be able to
distinguish between "cyclic" and "invalid for other reasons" from the
outside. These two situations are now represented by
CSSCyclicVariableValue and CSSInvalidVariableValue, respectively.

[1] w3c/csswg-drafts#6006
[2] https://drafts.csswg.org/css-variables/#guaranteed-invalid-value

Fixed: 1110188
I2S: https://groups.google.com/a/chromium.org/g/blink-dev/c/0xrbzYe_vxU/m/7bsL76n9CgAJ
Change-Id: I0e7b529e4ae595c6c327c45b4da1a43be64c1c88
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2762156
Reviewed-by: Xiaocheng Hu <xiaochengh@chromium.org>
Commit-Queue: Anders Hartvoll Ruud <andruud@chromium.org>
Cr-Commit-Position: refs/heads/master@{#863497}
@chromium-wpt-export-bot chromium-wpt-export-bot merged commit 423f107 into master Mar 16, 2021
@chromium-wpt-export-bot chromium-wpt-export-bot deleted the chromium-export-cl-2762156 branch March 16, 2021 23:20
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.

3 participants