From 9a3e00327282abb575ed233c8ec876094472c32d Mon Sep 17 00:00:00 2001 From: evazion Date: Mon, 22 Feb 2021 02:26:18 -0600 Subject: [PATCH] notes: remove support for disused css properties. Remove the follow properties: * clear (wasn't used) * list-style-* (wasn't used) * outline (only used a few times; can be achieved with borders or box-shadow). * mask (not well-supported in browsers; only used a few times for effects that could be achieved in other ways). * text-decoration-* (use the shorthand property) * text-transform (can be achieved in other ways) --- app/logical/note_sanitizer.rb | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/app/logical/note_sanitizer.rb b/app/logical/note_sanitizer.rb index cbec0d61a..ddbd994b6 100644 --- a/app/logical/note_sanitizer.rb +++ b/app/logical/note_sanitizer.rb @@ -23,7 +23,6 @@ module NoteSanitizer border-top border-top-color border-top-left-radious border-top-right-radius border-top-style border-top-width bottom left right top box-shadow - clear color display filter @@ -33,19 +32,15 @@ module NoteSanitizer justify-content letter-spacing line-height - list-style list-style-position list-style-type margin margin-bottom margin-left margin-right margin-top - mask mask-border mask-clip mask-composite mask-image mask-mode mask-origin mask-position mask-repeat mask-size opacity - outline outline-color outline-offset outline-width outline-style padding padding-bottom padding-left padding-right padding-top perspective perspective-origin position text-align - text-decoration text-decoration-color text-decoration-line text-decoration-style + text-decoration text-indent text-shadow - text-transform transform transform-origin white-space word-break