Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

CSS not working anymore

March 17 (3 years ago)

Hi !

The issue I'm having is that when modifying my character-sheet on my original game, which was before the March 07 update, everything works fine

However when creating a new game and uploading the exact same files, the CSS doesn't work, only the HTML is showing..

Any idea ? I'm pretty sure it's related to the new update..

March 17 (3 years ago)

Edited March 17 (3 years ago)
vÍnce
Pro
Sheet Author

;-(

Have you tried toggling the new game settings(custom sheets only) option to see if it changes anything?

"Legacy Sanitization Forces sheet to use the more limited legacy version of CSS and HTML sanitization."

I assume enabling the option would allow any "pre-update" code to run as it always has...

If you are editing in the sandbox, you might need to use

{
   "legacy": true
}

In the sheet.json file to keep "Legacy Sanitization".

March 17 (3 years ago)

Didn't change anything :(

I wrote it exactly like you did..

March 17 (3 years ago)

Edited March 17 (3 years ago)
vÍnce
Pro
Sheet Author

Sorry, I should have noticed the ";" which I is not properly formatted for a json file. I'll correct the post above.

If legacy is the only thing in your sheet.json I think it should actually be 

{
"legacy": true
}

if you have other entries add it to the end and make sure to use a comma after the key:value pair above the legacy entry.

{
"foo": true,
"foo2": "some text",
"legacy": true
}

You can always test a json using https://jslint.com/ for proper formatting.


More info on the new iFrame and Sanitization Changes for sheets.


March 17 (3 years ago)

Edited March 17 (3 years ago)

Thank you SO much, it worked !

March 17 (3 years ago)
vÍnce
Pro
Sheet Author

+1