From 22436dba580353463bb1f1bc8283db6fa9c10c61 Mon Sep 17 00:00:00 2001 From: Pierre-Adrien Buisson Date: Tue, 19 May 2026 17:45:09 +0200 Subject: [PATCH] CSS scrubber: add justify keyword --- lib/html_sanitize_ex/scrubber/css.ex | 1 + test/html_sanitize_ex/scrubber/css_test.exs | 1 + 2 files changed, 2 insertions(+) diff --git a/lib/html_sanitize_ex/scrubber/css.ex b/lib/html_sanitize_ex/scrubber/css.ex index ec1c5bb..54e373e 100644 --- a/lib/html_sanitize_ex/scrubber/css.ex +++ b/lib/html_sanitize_ex/scrubber/css.ex @@ -179,6 +179,7 @@ defmodule HtmlSanitizeEx.Scrubber.CSS do "green", "!important", "italic", + "justify", "left", "lime", "maroon", diff --git a/test/html_sanitize_ex/scrubber/css_test.exs b/test/html_sanitize_ex/scrubber/css_test.exs index c19d419..99889fa 100644 --- a/test/html_sanitize_ex/scrubber/css_test.exs +++ b/test/html_sanitize_ex/scrubber/css_test.exs @@ -8,6 +8,7 @@ defmodule HtmlSanitizeExScrubberCSSTest do @good_css [ ".test { color: red; border: 1px solid brown; }", "div.foo { width: 500px; height: 200px; }", + "p.justified { text-align: justify; }", # gibberish should work "GI b gkljfl kj { { { ********" ]