godotengine / godotengine/godot

`clip_children` not working with new WebKit

Open
#97,123 1 comment 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug needs testing platform:ios platform:macos platform:web topic:2d
Dominant language
C++
Stars
117k
Forks
26.8k
PR merge metrics
PR metrics pending

Description

Tested versions
  • with 4.3.stable
  • 4.4-dev2
  • 4.6.stable
System information

M1 MacOS 15.0 (Safari 18.0), iOS 18.1. Tested with Forward+ and Compatibility

Issue description

2024-09-17 19 48 10

WebKit (Safari on MacOS and all browsers on iOS) does not show the node when the clip_children value is set to anything other than Disabled.

But it seems like old WebKit doesn't have this issue:

oldmac
air 2017
safari 16.4.1
mac os monterey 12.7.1

se
Iphone SE
iOS 15.8.2

Steps to reproduce
  • Create Node
  • Set clip_children to "Clip Only" or "Clip + Draw"
  • Run in Browser
  • Open in Safari
Minimal reproduction project (MRP)

Demo project: https://github.com/TABmk/godot4-webkit-mask-bug

Demo build: https://tabmk.github.io/godot4-webkit-mask-bug/webkit-mask-bug.html

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked minimal reproduction project and its demo build, following the listed steps in Safari on the reported macOS and iOS versions. Compare rendering with clip_children set to Disabled, Clip Only, and Clip + Draw; done means the node displays correctly for the non-Disabled settings in the affected WebKit environments.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
game-dev, web-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.