[personal profile] haptalaon posting in [community profile] style_system
Hello all - new to DW themes but not new to CSS, and maybe tripping over myself.

I've added some custom CSS on the Customize Your Theme >> Custom CSS page, and it was appearing and looking marvellous. Then - all of a sudden - it stopped displaying my custom tweaks on my journal.

I've tried Ctrl+f5 to refresh my cache, and tried removing the code - saving - replacing it - saving again, and using an external URL. I've also used Inspect on the journal page, to check and confirm that my code isn't appearing at all (it's as if it doesn't exist). I'm feeling low now, as I liked my changes and my basic journal looks dull.

I've got a free account only - is that the issue? Or is this some weird quirk I don't understand....?

Cheers all!

Date: 2022-11-03 09:57 pm (UTC)
momijizukamori: (dreamsheep | styles)
From: [personal profile] momijizukamori
Shouldn't be because you have a free account! Can you share the CSS you have there somewhere so I can investigate?

Date: 2022-11-03 11:40 pm (UTC)
momijizukamori: Green icon with white text - 'I do believe in phosphorylation! I do!' with a string of DNA basepairs on the bottom (Default)
From: [personal profile] momijizukamori

Okay something in the CSS cleaner is not liking the fancy-quotes for some reason? If you remove those lines (or replace them with stuff from the ASCII character set) everything works properly. I'll investigate if something changed somewhere with our recent server upgrades, because that's perfectly valid CSS and I don't know why the cleaner thinks unicode makes it suspect.

Date: 2022-11-04 02:47 pm (UTC)
momijizukamori: Green icon with white text - 'I do believe in phosphorylation! I do!' with a string of DNA basepairs on the bottom (Default)
From: [personal profile] momijizukamori

You're welcome! Sorry for the weirdness - this same code definitely worked before, yeah?

Date: 2022-11-04 11:00 pm (UTC)
momijizukamori: Green icon with white text - 'I do believe in phosphorylation! I do!' with a string of DNA basepairs on the bottom (Default)
From: [personal profile] momijizukamori

Ah, I was trying to figure out if you had changed something, or if we had - if the quote replacements were new, I think that's your change rather than something on our end (but we should still be handling it better!)

Date: 2022-11-09 02:43 am (UTC)
momijizukamori: Green icon with white text - 'I do believe in phosphorylation! I do!' with a string of DNA basepairs on the bottom (Default)
From: [personal profile] momijizukamori

Yeah, custom layers go through the same cleaner that custom CSS does, for security reasons. I suspect it may be limited to either just ASCII, or Latin-1 (which is ASCII plus accents/diacritics common in Western European languages) - some parts of our code base haven't been touched in a looooong time and predate widespread adoption of utf8.

(just looked, and yeah, the CSS cleaner hasn't been touched in... over a decade.......... Time for updates I guess)

Profile

Dreamwidth style system discussion

July 2025

S M T W T F S
  123 45
6789101112
13141516171819
20212223242526
2728293031  

Style Credit

Expand Cut Tags

No cut tags
Page generated Jul. 28th, 2025 05:14 pm
Powered by Dreamwidth Studios