8335967: "text-decoration: none" does not work with "A" HTML tags

Reviewed-by: abhiscxk, dmarkov, honkar, prr
This commit is contained in:
Alexey Ivanov 2024-07-26 11:22:32 +00:00
parent 2aeb12ec03
commit 374fca0fcb
2 changed files with 132 additions and 0 deletions

View file

@ -844,6 +844,10 @@ public class CSS implements Serializable {
}
static Object mergeTextDecoration(String value) {
if (value.startsWith("none")) {
return null;
}
boolean underline = value.contains("underline");
boolean strikeThrough = value.contains("line-through");
if (!underline && !strikeThrough) {