From 44d057ba3fe8e7707528ba9231311482fabc35a1 Mon Sep 17 00:00:00 2001 From: torusrxxx Date: Thu, 12 Dec 2024 12:30:29 +0800 Subject: [PATCH] Add CSS property math-style --- src/freenet/client/filter/CSSTokenizerFilter.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/freenet/client/filter/CSSTokenizerFilter.java b/src/freenet/client/filter/CSSTokenizerFilter.java index e28578ec54..1f495edc87 100644 --- a/src/freenet/client/filter/CSSTokenizerFilter.java +++ b/src/freenet/client/filter/CSSTokenizerFilter.java @@ -250,6 +250,7 @@ public static 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"); @@ -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")));