Skip to content
This repository was archived by the owner on Feb 26, 2026. It is now read-only.
This repository was archived by the owner on Feb 26, 2026. It is now read-only.

linear-gradient in background style property seems to breaks the whole property #699

@srenoufd

Description

@srenoufd

Using the latest version of the package, it seems that linear-gradient in combination with url(), set in the background inside an inline style property will break the background.

Steps to reproduce :

  1. Use CSS property & value : background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url(any_url) no-repeat center center; in any html tag
  2. Pass it to the sanitize function
  3. The selected tag will have its background property entirely removed.

Are there any workaround ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions