Skip to content

Commit

Permalink
Update valid word-break CSS property values (#315)
Browse files Browse the repository at this point in the history
Signed-off-by: Sven Strickroth <email@cs-ware.de>
  • Loading branch information
csware authored Feb 5, 2024
1 parent cd61b17 commit 032d11b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/java/org/owasp/html/CssSchema.java
Original file line number Diff line number Diff line change
Expand Up @@ -473,8 +473,10 @@ Property forKey(String propertyName) {
Set<String> whiteSpaceLiterals0 = Set.of(
"-moz-pre-wrap", "-o-pre-wrap", "-pre-wrap", "nowrap", "pre",
"pre-line", "pre-wrap");
Set<String> wordBreakLiterals0 = Set.of(
"break-all", "break-word", "keep-all", "normal");
Set<String> wordWrapLiterals0 = Set.of(
"break-word", "normal");
"anywhere", "break-word", "normal");
Set<String> rgb$FunLiterals0 = Set.of(",");
Set<String> linearGradient$FunLiterals0 = Set.of(
",", "to");
Expand Down Expand Up @@ -748,6 +750,7 @@ Property forKey(String propertyName) {
Property whiteSpace = new Property(
0, union(fontStyleLiterals0, whiteSpaceLiterals0), zeroFns);
builder.put("white-space", whiteSpace);
builder.put("word-break", new Property(0, wordBreakLiterals0, zeroFns));
builder.put("word-wrap", new Property(0, wordWrapLiterals0, zeroFns));
builder.put("zoom", new Property(1, fontStretchLiterals1, zeroFns));
Property rgb$Fun = new Property(1, rgb$FunLiterals0, zeroFns);
Expand Down

0 comments on commit 032d11b

Please sign in to comment.