diff --git a/src/freenet/client/filter/CSSTokenizerFilter.java b/src/freenet/client/filter/CSSTokenizerFilter.java index 855854005c..ed091db40e 100644 --- a/src/freenet/client/filter/CSSTokenizerFilter.java +++ b/src/freenet/client/filter/CSSTokenizerFilter.java @@ -332,6 +332,7 @@ public static T[] concat(T[] a, T[] b) { allelementVerifiers.add("text-overflow"); allelementVerifiers.add("text-shadow"); allelementVerifiers.add("text-transform"); + allelementVerifiers.add("text-underline-offset"); allelementVerifiers.add("text-underline-position"); allelementVerifiers.add("text-wrap"); allelementVerifiers.add("top"); @@ -1716,6 +1717,11 @@ else if("text-transform".equalsIgnoreCase(element)) elementVerifiers.put(element,new CSSPropertyVerifier( Arrays.asList("capitalize","uppercase","lowercase","none","fullwidth","full-size-kana","math-auto"),ElementInfo.VISUALMEDIA)); allelementVerifiers.remove(element); } + else if("text-underline-offset".equalsIgnoreCase(element)) + { + elementVerifiers.put(element,new CSSPropertyVerifier(null,ElementInfo.VISUALMEDIA,null,Arrays.asList("36"))); + allelementVerifiers.remove(element); + } else if("text-underline-position".equalsIgnoreCase(element)) { elementVerifiers.put(element,new CSSPropertyVerifier( Arrays.asList("auto","under","left","right"),ElementInfo.VISUALMEDIA));