WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
Bug 254590
REGRESSION (Safari 16.4): Behavior of transform:scale(0), Polyglot extension popup disappears
https://bugs.webkit.org/show_bug.cgi?id=254590
Summary
REGRESSION (Safari 16.4): Behavior of transform:scale(0), Polyglot extension ...
Matt Sephton
Reported
2023-03-28 08:43:35 PDT
In this Safari Extension, for the past 6 years we have been using: Previously ``` #polyglot__panel { transform: scale(0) !important; } ``` which, regardless of whether it is considered correct or not, had no effect and the element displayed fine. Q: is this change in behaviour to be expected? If I try to override this CSS, there is a different problem: overridding style has no effect until original style is deactivated/unchecked in web inspector
https://bugs.webkit.org/show_bug.cgi?id=254585
Attachments
Add attachment
proposed patch, testcase, etc.
Matt Sephton
Comment 1
2023-03-28 08:44:11 PDT
Safari Extension I was referring to:
https://github.com/uetchy/Polyglot
Matt Sephton
Comment 2
2023-03-28 09:53:35 PDT
My current workaround is to put the following in a user stylesheet: ``` #polyglot__panel { transform: scale(1) !important; } ```
Alexey Proskuryakov
Comment 3
2023-03-28 14:15:07 PDT
Thank you for the report! Could you please clarify what was the last version where you saw this work, and what is the first one where it doesn't? If you can add more detailed steps to reproduce, that would be appreciated too. I take it that installing Polyglot is step 1, but what is the most obvious symptom of the problem then?
Matt Sephton
Comment 4
2023-03-29 07:53:37 PDT
It was working in Safari 16.3 (I am using macOS 12.6.3) It was reported broken by a user of an Extension in a Safari 16.4 beta (not sure if installed separately or as part of a macOS beta)
https://github.com/uetchy/Polyglot/issues/128
It was confirmed by my as not working in Safari 16.4 (I am using macOS 12.6.4) Some more discussion at a different/related issue, please look at this:
https://bugs.webkit.org/show_bug.cgi?id=254585
Radar WebKit Bug Importer
Comment 5
2023-03-29 09:32:45 PDT
<
rdar://problem/107371143
>
Razvan Caliman
Comment 6
2023-03-29 12:38:57 PDT
Copying over some notes from
Bug 254585
which is related to this one: This has been progressed in Safari 16.4, not regressed. The issue with the disappearing popup is caused by the animation of a property marked `!important`. Simplified test case extracted from:
https://github.com/uetchy/Polyglot/blob/master/PolyglotSafariExtension/ContentScript/content.css
``` #polyglot__panel { transform: scale(0) !important; ... animation: polyglot__envelope 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards !important; } @keyframes polyglot__envelope { 0% { transform: scale(0); } 100% { transform: scale(1); } } ``` The animation fill mode `forwards` isn't kept. The style that wins at the end is `transform: scale(0) !important;`. This is intentional. Therefore, the panel disappears because it scales back to zero right after the animation ends. The animation itself should not run at all. This is being addressed in
Bug 254665
. It is a fix to bring WebKit in line with the intended spec behavior which is respected by other browser engines. See also
Bug 252481
. The fact that this worked in previous Safari versions was itself a bug. --- The issue with Web Inspector not reflecting the correct applied styles is valid and tracked in
Bug 254585
.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug