this post was submitted on 07 Mar 2025
9 points (100.0% liked)

Web Development

5097 readers
17 users here now

Welcome to the web development community! This is a place to post, discuss, get help about, etc. anything related to web development

What is web development?

Web development is the process of creating websites or web applications

Rules/Guidelines

Related Communities

Wormhole

Some webdev blogsNot sure what to post in here? Want some web development related things to read?

Heres a couple blogs that have web development related content

CreditsIcon base by Delapouite under CC BY 3.0 with modifications to add a gradient

founded 2 years ago
MODERATORS
 

I'm on Zorin(Ubuntu) and when I open my HTML file with Firefox, everything is rendered correctly.

When I open the same HTML file with Brave or Waterfox, the CSS is not rendered.

Everything is rendered correctly for any browser if I first open the HTML file in VSCode then create a Live Server for it.

Is there a default setting in other browsers keeping the CSS in local HTML file from rendering? Thanks in advance.

top 5 comments
sorted by: hot top controversial new old
[–] FizzyOrange@programming.dev 4 points 10 months ago* (last edited 10 months ago)

Impossible to say without more details. Did you try debugging it? See if the CSS file can load? Check the dev console?

[–] oranki@sopuli.xyz 3 points 10 months ago

If the browser is installed as a flatpak, I think it only gets permission to either the directory the HTML file is in, or just the single HTML file.

Snaps probably have a similar permission restriction.

[–] mesamunefire@piefed.social 2 points 10 months ago (1 children)

How are they installed? Are some snaps?

[–] yourFanatic@sh.itjust.works 2 points 10 months ago* (last edited 10 months ago) (1 children)

I've only installed browsers with commands from their official website and I've also installed flatpaks.

I'm not sure if stock Firefox on Zorin is a flatpak or snap but it has no problem rendering the CSS.

[–] mesamunefire@piefed.social 4 points 10 months ago

A long time ago, I saw something very similar with snap in particular. Snap for some reason had no permission on the filesystem I was running on (or limited permissions I forget which).

I just installed from source and it started working. Not sure if that helps you or not, but I would take a look at the inspect element -> Network tab and you should see something.