htmlpurifier icon indicating copy to clipboard operation
htmlpurifier copied to clipboard

CSS3 rules are deleted

Open Bingbazaar opened this issue 12 years ago • 4 comments

Things like box-shadow, border-radius and linear-gradient() are removed. It's quite a disadvantage for design to not be able to use these properties. Would it be possible to fix this?

Bingbazaar avatar Sep 16 '14 09:09 Bingbazaar

Someone implement them, and PR them in!

ezyang avatar May 02 '15 01:05 ezyang

Have you found a solution for box-shadow and gradient?

solution for rgba found here: https://reviews.mahara.org/#/c/3679/2/htdocs/lib/htmlpurifier/HTMLPurifier/AttrDef/CSS/Color.php

border-radius you can found here: https://github.com/ezyang/htmlpurifier/pull/19

Daijobou avatar Jan 05 '16 20:01 Daijobou

@ezyang when you want, I can give you my htmlpurifier 4.7.0 source. You can look with WinMerge the differences. I have included the most needed CSS3 features in it. I only missing support for gradient.

Daijobou avatar Jul 28 '16 10:07 Daijobou

@Daijobou, would you mind posting your changes? I am also in need of CSS3 support. #19 appears to be in the code, but I still cannot seem to get it to work.

teells avatar Oct 14 '16 16:10 teells