altv-issues icon indicating copy to clipboard operation
altv-issues copied to clipboard

v15 cef css issues

Open tastydev opened this issue 1 year ago • 6 comments

Description of the problem

The CEF seems buggy on dev v15. As you can see border-radius, blur, and maybe color alpha seem to be broken (maybe more i just see thoose)

RELEASE: 4cd6f1bfdb15a6f80139de68de5ee927

DEV (exactly same sourcecode & version): e954499c4ef278c9fd6f53c55f6dc625

Reproduction steps

  1. Create a div
  2. Apply background-color with low alpha, blur and border-radius
  3. Let it render

Expected behaviour

CSS attributes are applied correctly.

Additional context

No response

Operating system

windows

Version

v15.0-dev540

Crashdump ID

No response

Reproduction tested

  • [X] I confirm that I have made sure that this issue is also present on the newest dev version

tastydev avatar Aug 18 '23 22:08 tastydev

Can you please check if you have any warnings near those style attributes in CEF's inspector? (Launch alt:V in debug mode and open chrome://inspect in your browser)

zziger avatar Aug 19 '23 09:08 zziger

@zziger Unfortunately, there are no warnings. As soon as i reapply thoose styles through the chrome inspector the issue is gone. (i.e if i click on border-radius to disable it and if i enable it again everything works fine)

I don't have this issue on release branch.

tastydev avatar Aug 19 '23 10:08 tastydev

I found out that the cause has to do something with backdrop-filter: blur(0.4vh); as soon as i use this attribute on dev something breaks. Only on DEV branch. Edit: if i apply backdrop-filter: blur(0.4vh); through the devtools it doesn't have any effect anywore even if i increase the blur value to an crazy level.

tastydev avatar Aug 19 '23 10:08 tastydev

Most likely this is caused by hardware acceleration, that is enabled in alt:V's CEF by default since v15. Backdrop blur is unfortunately known to cause some issues in that scenario

zziger avatar Aug 19 '23 11:08 zziger

Exact same issue with
-webkit-backdrop-filter: blur(4px); or backdrop-filter: blur(4px);

Work on release but now it's a black background, it's a bit annoying because some of our UI are designed for

Arochka avatar Sep 19 '23 17:09 Arochka

@Arochka @tastydev can you please provide a resource to reproduce the issue?

martonp96 avatar Nov 22 '23 12:11 martonp96