Intent to prototype: @starting-style rule in CSS Transitions Level 2

218 views
Skip to first unread message

Boris Chiou

unread,
Apr 24, 2024, 4:39:52 PMApr 24
to dev-pl...@mozilla.org

Summary: The @starting-style rule defines a grouping rule, and the style rules inside it are used to establish styles to transition from, if the previous style change event did not establish a before-change style for the element whose styles are being computed. We also use the starting style to create the transitions when changing the display property from none. This means it provides an additional way to create CSS transitions even if there is no before-change style (or the before-change style is the same as after-change style when changing display property).

Bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1834876
Specification: https://drafts.csswg.org/css-transitions-2/#at-ruledef-starting-style
Standards Body: CSSWG
Platform coverage: all

Preference: "layout.css.starting-style-at-rules.enabled"
DevTools bug: No needed for now (or we could file a new bug for it if we would like to show more specific info for starting style),
Link to standards-positions discussion: https://github.com/mozilla/standards-positions/issues/833
Other browsers:

web-platform-tests: All tests in "css/css-transitions/starting-style-*.html", and the parsing test is "css/css-transitions/parsing/starting-style-parsing.html".

Thanks.

Boris

Boris Chiou

unread,
Apr 24, 2024, 4:42:39 PMApr 24
to dev-pl...@mozilla.org
Hi,

Sorry, I missed the bug for DevTools. It is https://bugzilla.mozilla.org/show_bug.cgi?id=1892191

Thanks.
Reply all
Reply to author
Forward
0 new messages