Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions lib/html_sanitize_ex/scrubber/css.ex
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ defmodule HtmlSanitizeEx.Scrubber.CSS do
"green",
"!important",
"italic",
"justify",
"left",
"lime",
"maroon",
Expand Down
1 change: 1 addition & 0 deletions test/html_sanitize_ex/scrubber/css_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@
@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 { { { ********"
]

test "should return valid css" do

Check failure on line 16 in test/html_sanitize_ex/scrubber/css_test.exs

View workflow job for this annotation

GitHub Actions / Test for lib/ changes

test should return valid css (HtmlSanitizeExScrubberCSSTest)
Enum.each(@good_css, fn text ->
assert text == scrub_css(text)
end)
Expand Down
Loading