mirror of https://github.com/M66B/FairEmail.git
Process all element classes
This commit is contained in:
parent
7a8efad076
commit
61a5db408d
|
@ -1798,11 +1798,18 @@ public class HtmlHelper {
|
||||||
style = mergeStyles(style, srule.getStyle().getCssText(), false);
|
style = mergeStyles(style, srule.getStyle().getCssText(), false);
|
||||||
break;
|
break;
|
||||||
case Selector.SAC_CONDITIONAL_SELECTOR:
|
case Selector.SAC_CONDITIONAL_SELECTOR:
|
||||||
|
if (!TextUtils.isEmpty(clazz)) {
|
||||||
ConditionalSelectorImpl cselector = (ConditionalSelectorImpl) selector;
|
ConditionalSelectorImpl cselector = (ConditionalSelectorImpl) selector;
|
||||||
if (cselector.getCondition().getConditionType() == SAC_CLASS_CONDITION) {
|
if (cselector.getCondition().getConditionType() == SAC_CLASS_CONDITION) {
|
||||||
ClassConditionImpl ccondition = (ClassConditionImpl) cselector.getCondition();
|
ClassConditionImpl ccondition = (ClassConditionImpl) cselector.getCondition();
|
||||||
if (clazz.equalsIgnoreCase(ccondition.getValue()))
|
String value = ccondition.getValue();
|
||||||
|
for (String cls : clazz.split("\\s+"))
|
||||||
|
if (cls.equalsIgnoreCase(value)) {
|
||||||
style = mergeStyles(style, srule.getStyle().getCssText(), false);
|
style = mergeStyles(style, srule.getStyle().getCssText(), false);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue