Godot version:
At first i though it was me messing with the source code of stylebox (#34320) but then i tried with official commit 3a9284b56 and the issue seems to persist.
OS/device including version:
Linux mint (first day! After windows crashing 10 times in 2 days.)
Issue description:
So if you set Corner Detail to a high enough value (i set it to 100, there will also be a project attached) AND have borders enabled AND have Shadow enabled AND have anti aliasing enabled, the results are... well, with GLES2 i get the following:

While if i disable the shadow OR the border OR anti aliasing, it returns to normal:

GLES3 seems to be more intuitive and gives me a clue:

With GLES3 the panel is never drawn.
I did make an attempt (for the first time) to try to debug this with Qt-creator but with no veil.
Steps to reproduce:
So to reproduce this you need to: Set the Corner Detail to a high value AND have Shadow enalbed AND have anti aliasing enabled AND have borders enabled (or download the attached project!).
Minimal reproduction project:
InnerShadowTest.zip
Try increasing Rendering > Limits > Canvas Polygon Buffer Size Kb in the Project Settings. Note that doing so may slow down rendering.
That said, we should probably limit the corner detail to a lower value…
We can also optimize drawing by never using a corner detail that's higher than the corner radius (doing so is overkill).
Linux mint (first day! After windows crashing 10 times in 2 days.)
Welcome to GNU/Linux, my friend! :smile:
Most helpful comment
Welcome to GNU/Linux, my friend! :smile: