mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8335967: "text-decoration: none" does not work with "A" HTML tags
Reviewed-by: abhiscxk, dmarkov, honkar, prr
This commit is contained in:
parent
2aeb12ec03
commit
374fca0fcb
2 changed files with 132 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue