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 .
×

Published character sheet ignoring CSS – works in internal editor but not when used in a game

Hello, I’m having an issue with a recently approved and published character sheet called Amor de Otro Mundo (ADOM) , and I’m trying to understand whether this is related to the sheet configuration or to the publishing process. Context: The sheet was approved and published on 16/01/2025 at around 6:19 pm as a community-made, non-official character sheet. Issue description: When I open the sheet inside Roll20’s internal character sheet editor , the CSS loads and behaves correctly. However, once the sheet is selected and used in an actual game , it behaves as if the .css file is being ignored entirely. The HTML loads, but none of the layout or styling rules are applied. Important detail: The exact same HTML and CSS files work correctly in the internal editor, which makes me think the problem is not related to syntax errors or invalid selectors. Possible cause identified: In the sheet.json , the sheet was initially published with: "legacy" : true I suspect this may be forcing Roll20 to treat the sheet as a legacy sheet and therefore ignore modern CSS behavior. I have already submitted a pull request to change this to: "legacy" : false What I’d like to know: Is it possible for the legacy flag alone to cause the CSS to be ignored in published sheets? Is there any known difference between how CSS is handled in the internal editor vs. live games? Is there a way to confirm whether Roll20 is actually loading the CSS file for a published sheet? Any guidance on how to properly diagnose or fix this would be greatly appreciated. Thank you for your time.
1768756788
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
You have identified the cause. If you were developing using the sandbox without any sheet json specified, you were developing with legacy: false. The legacy mode uses a very strict sanitizer and requires specific css prepends in the code in order to work.
1768760375

Edited 1768760398
Andreas J.
Forum Champion
Sheet Author
Translator
Good you figured it out yourself. This is number #3 on the classic mistake list, it happens. :D&nbsp; <a href="https://wiki.roll20.net/Character_Sheet_Development/Common_Mistakes#3" rel="nofollow">https://wiki.roll20.net/Character_Sheet_Development/Common_Mistakes#3</a> &nbsp;