Added text decoration underline

This commit is contained in:
M66B 2022-03-03 15:26:25 +01:00
parent f591b3af45
commit c5741053d3
1 changed files with 6 additions and 0 deletions

View File

@ -769,9 +769,13 @@ public class HtmlHelper {
break;
case "text-decoration":
case "text-decoration-line":
// https://developer.mozilla.org/en-US/docs/Web/CSS/text-decoration
// https://developer.mozilla.org/en-US/docs/Web/CSS/text-decoration-line
if (value.contains("line-through"))
sb.append("text-decoration:line-through;");
else if (value.contains("underline"))
sb.append("text-decoration:underline;");
break;
case "text-transform":
@ -2980,6 +2984,8 @@ public class HtmlHelper {
case "text-decoration":
if ("line-through".equals(value))
setSpan(ssb, new StrikethroughSpan(), start, ssb.length());
else if ("underline".equals(value))
setSpan(ssb, new UnderlineSpan(), start, ssb.length());
break;
case "text-align":
// https://developer.mozilla.org/en-US/docs/Web/CSS/text-align