Bug 1777320 [wpt PR 34649] - Update CSS toggles parsing/computation code to spec...
commit2af0cfe7cd5cb1bdf5a4c4950e6f8096262ba3cc
authorL. David Baron <dbaron@chromium.org>
Mon, 4 Jul 2022 21:55:57 +0000 (4 21:55 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Tue, 5 Jul 2022 08:35:56 +0000 (5 08:35 +0000)
treed74f52edd0104afe50f7c25c14fb36940411c591
parentfe259074d009675e87346b2c21dd9e2f2b5011fa
Bug 1777320 [wpt PR 34649] - Update CSS toggles parsing/computation code to spec changes., a=testonly

Automatic update from web-platform-tests
Update CSS toggles parsing/computation code to spec changes.

(These properties are behind a runtime flag that is off.)

I believe the complete list of changes is:

 - Toggle states can be described as either custom idents or integers
   rather than only as integers;
   the set of named states (if given) is given inside [] in the
   toggle-root (or toggle) properties; a single named state is given as
   the initial value in toggle-root (or toggle) and after the set verb
   in toggle-trigger.

 - toggle-root (and toggle) take <toggle-states> [at <initial-state>]?
   rather than [<initial-state> /]? <maximum-state>.

 - toggle-root (and toggle) take cycle | cycle-on | sticky, where cycle
   is the default, where there was previously only a (non-default)
   sticky boolean.

 - toggle-trigger has prev/next/set verbs, rather than just taking an
   <integer> (implying set) or nothing (implying 'next 1').

Bug: 1250716
Change-Id: I9f3f2c5d2a681b4e8639ac64d921e2b02ff297a8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3735886
Reviewed-by: Anders Hartvoll Ruud <andruud@chromium.org>
Commit-Queue: David Baron <dbaron@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1019810}

--

wpt-commits: 977b25ceff228c792b284df81a4998db6a0345ce
wpt-pr: 34649
testing/web-platform/tests/css/css-toggle/animations/toggle-root-interpolation.tentative.html
testing/web-platform/tests/css/css-toggle/animations/toggle-trigger-interpolation.tentative.html
testing/web-platform/tests/css/css-toggle/parsing/support/toggle-root-values.js
testing/web-platform/tests/css/css-toggle/parsing/toggle-trigger-computed.tentative.html
testing/web-platform/tests/css/css-toggle/parsing/toggle-trigger-invalid.tentative.html
testing/web-platform/tests/css/css-toggle/parsing/toggle-trigger-valid.tentative.html
testing/web-platform/tests/css/css-toggle/toggle-shorthand-serialization.tentative.html