# Revert "gpui: Fix overflow_hidden to support clip with border radius" \(\#37480\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/bb2d833373400d4debf416e90d5b2870f75dde96)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: bb2d833373400d4debf416e90d5b2870f75dde96

Requested commit: bb2d833373400d4debf416e90d5b2870f75dde96

Commit: bb2d833373400d4debf416e90d5b2870f75dde96

Tree: 03605fc0695ca56ffc6600cf138821f477de2e1c

Author: localcc

Committer: GitHub

## Message

```
Revert "gpui: Fix overflow_hidden to support clip with border radius" (#37480)

This reverts commit 40199266b6634cc3165f3842abae1d562ef4dcca.

The issue with the commit is: ContentMask<Pixels>::intersect is doing
intersection of corner radii which makes inner containers use the max
corner radius out of all the parents when it should be more complex to
correctly clip children (clip sorting..?)

Release Notes:

- N/A
```

## Parents

- [eedfc5be5aad0a043aec03ebb922e7ee5e5fc9b3](https://git.cafe/gitcafe/zed/commit/eedfc5be5aad0a043aec03ebb922e7ee5e5fc9b3?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/bb2d833373400d4debf416e90d5b2870f75dde96?format=markdown)
