obsproject / obs-browser

CEF-based OBS Studio browser plugin
GNU General Public License v2.0
769 stars 217 forks source link

cant @import url("C:/local/file.css") #422

Open Nerxxy opened 10 months ago

Nerxxy commented 10 months ago

Operating System Info

Windows 10

Other OS

No response

OBS Studio Version

29.1.3

OBS Studio Version (Other)

No response

OBS Studio Log URL

N/A

OBS Studio Crash Log URL

No response

Expected Behavior

Expect obs to grab local file and apply css attributes to custom css when linking to a local file with @import in the custom css editor

Current Behavior

@import doesnt grab local file

Steps to Reproduce

  1. have a browser source
  2. make a css file with customisations
  3. go to custom css in obs
  4. type @import url("C:/path/to/file.css")
  5. watch nothing happen ...

Anything else we should know?

not as far as i know. if any more input is needed please let me know

as for the log, i put N/A because i dont think it would actually help any, but if it would be i would be more than happy to provide it

RytoEX commented 10 months ago

I can confirm that this works in cefclient version 103, but does not work in OBS Studio 29.1.3.

JonnyTech commented 10 months ago

type https://github.com/import url("C:/path/to/file.css")

On Windows, try the triple slash syntax: file:///c:/path/to/file.css

Nerxxy commented 10 months ago

type https://github.com/import url("C:/path/to/file.css")

On Windows, try the triple slash syntax: file:///c:/path/to/file.css

i have already tried this, still didnt work

Nerxxy commented 10 months ago

I can confirm that this works in cefclient version 103, but does not work in OBS Studio 29.1.3.

what is cefclient? is that just the beta obs?