Bug 241362 - animating the outline-width with transition on a textarea element makes the text janky
Summary: animating the outline-width with transition on a textarea element makes the t...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Animations (show other bugs)
Version: Safari Technology Preview
Hardware: Mac (Apple Silicon) macOS 12
: P2 Normal
Assignee: Nobody
URL:
Keywords: BrowserCompat, InRadar
Depends on:
Blocks:
 
Reported: 2022-06-06 22:30 PDT by Karl Dubost
Modified: 2022-06-15 17:43 PDT (History)
3 users (show)

See Also:


Attachments
test case demonstrating the issue (889 bytes, text/html)
2022-06-06 22:30 PDT, Karl Dubost
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Karl Dubost 2022-06-06 22:30:52 PDT
Created attachment 460058 [details]
test case demonstrating the issue

Steps to reproduce
1. Open the test case textarea-jumpy-text.html
2. Put the cursor over the text
3. Look at the text

Expected:
The outline grows around the text which is stable.

Actual:
The outline grows but the text becomes suddenly junky, vibrating.

Notes:
1. It doesn't reproduce on iOS 15.5
2. It doesn't reproduce on macOS Firefox and Chrome latest versions.
3. Initially reported on https://github.com/webcompat/web-bugs/issues/99978


Code of the test case. `transition: outline-width 1s;`

```html
    <style>
      body {
        padding: 30px;
      }
      textarea {
        outline-style: solid;
        outline-width: 0px;
        transition: outline-width 1s;
        width: 30ch;
        height: 5ch;
      }

      textarea:hover {
        outline-width: 20px;
      }
    </style>
  </head>
    <textarea>
        Lorem ipsum dolor sit amet consectetur adipisicing elit. Totam eaque itaque repellat, molestiae, dolore expedita exercitationem voluptas modi consequatur ipsa cum ea similique aliquid aspernatur dolores debitis veritatis autem illo?
    </textarea>
```
Comment 1 Radar WebKit Bug Importer 2022-06-06 22:31:32 PDT
<rdar://problem/94493738>
Comment 2 Karl Dubost 2022-06-15 17:43:16 PDT
Tested on Safari (18614.1.14.1.15) and reproducible.
https://bug-241362-attachments.webkit.org/attachment.cgi?id=460058