Bug 249044 - In a page that has an element with float and shape-outside, clicking a link crashes the tab
Summary: In a page that has an element with float and shape-outside, clicking a link c...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: Safari 16
Hardware: iPhone / iPad iOS 16
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-12-09 14:26 PST by Wes Souza
Modified: 2022-12-12 17:46 PST (History)
4 users (show)

See Also:


Attachments
Video capture of the issue on iOS 16.2 RC (3.99 MB, video/mp4)
2022-12-09 14:26 PST, Wes Souza
no flags Details
crashing test (806 bytes, text/html)
2022-12-11 16:11 PST, Karl Dubost
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Wes Souza 2022-12-09 14:26:40 PST
Created attachment 463970 [details]
Video capture of the issue on iOS 16.2 RC

It seems if an element has CSS float and shape-outside set, long-pressing on links crashes the tab.

If the link opens in a new tab, clicking the link opens the same tab on a new tab.

  <div>Test</div>
  <a href="https://www.example.com/" target="_blank">Link</a>
  <style>
    div {
      float: right;
      shape-outside: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><rect x="0" y="0" width="100" height="100"></rect></svg>');
    }
  </style>

Reproduction: https://codepen.io/wessouza/pen/VwdNbKK

Found by the Svelte team on https://kit.svelte.dev/ (fixed by removing the shape-outside property https://github.com/sveltejs/kit/pull/8028/files)
Comment 1 Radar WebKit Bug Importer 2022-12-09 14:32:46 PST
<rdar://problem/103194840>
Comment 2 Karl Dubost 2022-12-11 16:11:07 PST
Created attachment 463996 [details]
crashing test

Thanks a lot for the codepen.

From the discussion in https://github.com/sveltejs/kit/issues/8025
This happened on iOS Safari, but not iOS Firefox.

Let's convert the codepen as an individual test.