java-html-sanitizer icon indicating copy to clipboard operation
java-html-sanitizer copied to clipboard

How to add new possible values(props) for existing DEFAULT css properties.

Open lakshmisagar-as opened this issue 3 years ago • 1 comments

For example height property is available in DEFAULT CssSchema but initial is not included in the possible values for height property. Is there a way I can add more values to possible values? I need to do this for more than one properties.

If I try to include the property(with values I need) using withProperties method of CssSchema, I'm getting following error: Error injecting constructor, java.lang.IllegalArgumentException: Duplicate irreconcilable definitions for font-weight as I'm trying to use union method.

lakshmisagar-as avatar May 02 '22 20:05 lakshmisagar-as

I am also seeing this issue when trying to add colour values with CSS variable references.

 .allowStyling(
    CssSchema.withProperties(
        Map.of("color",
            new CssSchema.Property(258,
            Set.of("var(--text-secondary)"),
            Collections.emptyMap()))))

Related: #207

kevingibbons avatar Oct 10 '24 11:10 kevingibbons