Skip to content

Commit

Permalink
Add CSS property text-underline-offset
Browse files Browse the repository at this point in the history
  • Loading branch information
torusrxxx committed Dec 1, 2024
1 parent 77623ef commit b4d5b83
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 @@ -332,6 +332,7 @@ public static <T> 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");
Expand Down Expand Up @@ -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));
Expand Down

0 comments on commit b4d5b83

Please sign in to comment.