NEW 240103
flex-basis wont transition if a value is percentage
https://bugs.webkit.org/show_bug.cgi?id=240103
Summary flex-basis wont transition if a value is percentage
rhys
Reported 2022-05-04 17:53:50 PDT
MacOs 12.2.1 (safari 15.3) / iPad OS 15.0 Percentages in flex-basis cause transition to stop working. The following used to work and still does on other browsers: ``` div { flex-basis: min(200px, 33%); transition: all ease-out .25s; } div:hover { flex-basis: 300px; } ``` The problem isn't with using min because: The following also doesnt work: ``` div { flex-basis: 33%; transition: all ease-out .25s; } div:hover { flex-basis: 300px; } ``` While this does: ``` div { flex-basis: flex-basis: min(200px,500px); transition: all ease-out .25s; } div:hover { flex-basis: 300px; } ``` Also using the 1st example and width instead of flex-basis transitions fine even tho the min contains a percentage
Attachments
Antoine Quint
Comment 1 2022-05-11 05:06:22 PDT
Thanks for filing this report. Could you write a complete testcase that shows the regression here?
Radar WebKit Bug Importer
Comment 2 2022-05-11 05:06:38 PDT
Antoine Quint
Comment 3 2022-05-11 06:12:08 PDT
Could you also check with Safari Technology Preview if you can still reproduce the issue? I've attempted to write a simple demo that transitions flex-basis from a percentage value to a px value and it worked fine for me.
Note You need to log in before you can comment on or make changes to this bug.