Skip to content

Commit

Permalink
Add CSS property math-style
Browse files Browse the repository at this point in the history
  • Loading branch information
torusrxxx committed Dec 12, 2024
1 parent 99ec4e6 commit 44d057b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/freenet/client/filter/CSSTokenizerFilter.java
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,7 @@ public static <T> T[] concat(T[] a, T[] b) {
allelementVerifiers.add("margin-right");
allelementVerifiers.add("margin-top");
allelementVerifiers.add("margin");
allelementVerifiers.add("math-style");
allelementVerifiers.add("max-block-size");
allelementVerifiers.add("max-height");
allelementVerifiers.add("max-inline-size");
Expand Down Expand Up @@ -1260,6 +1261,11 @@ else if("margin".equalsIgnoreCase(element))
elementVerifiers.put(element,new CSSPropertyVerifier(null,ElementInfo.VISUALMEDIA,null,Arrays.asList("36<1,4>")));
allelementVerifiers.remove(element);
}
else if("math-style".equalsIgnoreCase(element))
{
elementVerifiers.put(element,new CSSPropertyVerifier(Arrays.asList("normal","compact"),ElementInfo.VISUALMEDIA));
allelementVerifiers.remove(element);
}
else if("max-block-size".equalsIgnoreCase(element))
{
elementVerifiers.put(element,new CSSPropertyVerifier(Arrays.asList("none"),ElementInfo.VISUALMEDIA,Arrays.asList("le","pe")));
Expand Down

0 comments on commit 44d057b

Please sign in to comment.