Sorry, we don't support your browser.  Install a modern browser

More HTML Styling

Currently, when making custom HTML with inline styling, some styles are stripped away. Although I get some of these maybe being a security concern, like using specific links with url(), I think most of these should be retained.

These styles only get stripped away when updating the package, not when viewing it in the package editor itself. This is all using inline styling since there is no <style> tag to edit.

CSS Properties Being Stripped:

  • display
  • align-items
  • justify-content
  • cursor
  • border-radius
  • outline
  • outline-offset
  • grid-template-columns
  • gap
  • top
  • bottom
  • left
  • right
  • width

CSS Functions Removed:

  • color-mix()
  • var()
    Not necessary, but would make maintaining repetitive inline styling much easier

Steps to reproduce:

  1. Create custom HTML with inline styles that use the properties/functions above.
  2. Save/update the package.
  3. Reopen/view the saved package.
  4. The listed properties are removed from the HTML.
5 months ago