Restore important element styles

This commit is contained in:
M66B 2023-08-26 18:44:44 +02:00
parent 0da95d1422
commit 5325b35aa9
1 changed files with 5 additions and 2 deletions

View File

@ -1904,9 +1904,12 @@ public class HtmlHelper {
baseParams.remove(key);
}
for (String key : baseParams.keySet())
if (!STYLE_NO_INHERIT.contains(key) || element)
for (String key : baseParams.keySet()) {
String value = baseParams.get(key);
boolean important = (value != null && value.contains("!important"));
if (!STYLE_NO_INHERIT.contains(key) || element || important)
result.put(key, baseParams.get(key));
}
return TextUtils.join(";", result.values());
}