Bug 181818 - CSS resize handle can be covered by child (composited) elements
Summary: CSS resize handle can be covered by child (composited) elements
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: WebKit Local Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2018-01-18 16:36 PST by Roko
Modified: 2023-04-18 13:03 PDT (History)
5 users (show)

See Also:


Attachments
test case (1018 bytes, text/html)
2023-04-18 13:03 PDT, Tim Guan-tin Chien [:timdream]
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Roko 2018-01-18 16:36:42 PST
# CSS `resize: both` handler issue

### Issue:

Parent CSS `resize` handler is shadowed by child element. (On Firefox it works. Handler is visible (painted on a higher Z-index layer) and receiver resize events).

### Description:

Resize handler shadowed by Canvas element (Similar to [144526](https://bugs.webkit.org/show_bug.cgi?id=144526) but regardless of absolute positioning)

### Test case:

https://jsfiddle.net/tqqhpa0f/1/

1. Handler not visible.
2. Even if not visible, when overlayed by IMG (see jsfiddle) it receives resize events.
3. When canvas element is child of our `resize` parent - the handler is not visible (like in IMG case) but it doesn't receives any events.
Comment 1 Radar WebKit Bug Importer 2018-01-22 10:38:03 PST
<rdar://problem/36739743>
Comment 2 Ahmad Saleem 2022-06-01 16:04:03 PDT
I am still able to reproduce this from attached JSFiddle in Comment 01 using Safari 15.5 on macOS 12.4.

I am unable to resize "red" canvas but when I expand, I can see yellow <div> and it can be resize. All other browsers like Chrome Canary 104 and Firefox Nightly 103 are able to resize "red canvas' as well.

Thanks!
Comment 3 Tim Guan-tin Chien [:timdream] 2023-04-18 13:03:35 PDT
Created attachment 465972 [details]
test case

Test case for the canvas case.