Skip to content

Commit 032d11b

Browse files
authored
Update valid word-break CSS property values (#315)
Signed-off-by: Sven Strickroth <email@cs-ware.de>
1 parent cd61b17 commit 032d11b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/main/java/org/owasp/html/CssSchema.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -473,8 +473,10 @@ Property forKey(String propertyName) {
473473
Set<String> whiteSpaceLiterals0 = Set.of(
474474
"-moz-pre-wrap", "-o-pre-wrap", "-pre-wrap", "nowrap", "pre",
475475
"pre-line", "pre-wrap");
476+
Set<String> wordBreakLiterals0 = Set.of(
477+
"break-all", "break-word", "keep-all", "normal");
476478
Set<String> wordWrapLiterals0 = Set.of(
477-
"break-word", "normal");
479+
"anywhere", "break-word", "normal");
478480
Set<String> rgb$FunLiterals0 = Set.of(",");
479481
Set<String> linearGradient$FunLiterals0 = Set.of(
480482
",", "to");
@@ -748,6 +750,7 @@ Property forKey(String propertyName) {
748750
Property whiteSpace = new Property(
749751
0, union(fontStyleLiterals0, whiteSpaceLiterals0), zeroFns);
750752
builder.put("white-space", whiteSpace);
753+
builder.put("word-break", new Property(0, wordBreakLiterals0, zeroFns));
751754
builder.put("word-wrap", new Property(0, wordWrapLiterals0, zeroFns));
752755
builder.put("zoom", new Property(1, fontStretchLiterals1, zeroFns));
753756
Property rgb$Fun = new Property(1, rgb$FunLiterals0, zeroFns);

0 commit comments

Comments
 (0)