-
Notifications
You must be signed in to change notification settings - Fork 1.7k
[css-transitions] transition-property: all
does not apply to custom properties
#10142
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
[css-transitions] transition-property: all
does not apply to custom properties
#10142
Conversation
Source/WebCore/style/Styleable.cpp
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you should test with RenderStyle::customPropertiesEqual
before doing all this work.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rules for whether a property will yield to a transition update are complex and encapsulated in updateCSSTransitionsForStyleableAndProperty()
. Even though two custom properties could have the same value, some transition properties could yield an update, for instance if the transition-duration changes in flight. I don't think we want to bring up any of the complicity of updateCSSTransitionsForStyleableAndProperty()
up to here.
EWS run on previous version of this PR (hash f16a492)
|
f16a492
to
5580a54
Compare
EWS run on previous version of this PR (hash 5580a54)
|
5580a54
to
2b94908
Compare
EWS run on previous version of this PR (hash 2b94908)
|
a38328f
to
390ec99
Compare
EWS run on previous version of this PR (hash 390ec99)
|
EWS run on previous version of this PR (hash a38328f)
|
390ec99
to
faaa468
Compare
EWS run on current version of this PR (hash faaa468)
|
… properties https://bugs.webkit.org/show_bug.cgi?id=252312 Reviewed by Antti Koivisto. When setting `transition-property: all`, which also happens to be that property's initial value, we would correctly consider all properties known within WebCore as a CSSPropertyID, but we would fail to consider registered custom properties that could otherwise be interpolated. We now iterate through all custom properties in both the before-change and after-change styles to gather custom properties that can be interpolated (ie. either a SyntaxValue or SyntaxValueList) and run the transition update logic on those. * LayoutTests/imported/w3c/web-platform-tests/css/css-properties-values-api/animation/custom-property-transition-property-all-expected.txt: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-properties-values-api/animation/custom-property-transition-property-all.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-properties-values-api/resources/utils.js: * Source/WebCore/style/Styleable.cpp: (WebCore::Styleable::updateCSSTransitions const): Canonical link: https://commits.webkit.org/260384@main
faaa468
8000
code>
to
fcdce8f
Compare
Committed 260384@main (fcdce8f): https://commits.webkit.org/260384@main Reviewed commits have been landed. Closing PR #10142 and removing active labels. |
fcdce8f
faaa468
🛠 mac🛠 wincairo🧪 ios-wk2🧪 api-mac 8000🧪 gtk-wk2🧪 api-ios🧪 mac-wk1🧪 api-gtk🛠 tv🧪 mac-wk2🧪 mac-AS-debug-wk2🛠 watch🧪 mac-wk2-stress