Ignore "!important" modifier for the "margin" property
This commit is contained in:
parent
5648764c62
commit
fc3171abad
1 changed files with 5 additions and 1 deletions
|
@ -213,7 +213,11 @@ shared_ptr<ZLTextStyleEntry> StyleSheetTable::createControl(const AttributeMap &
|
|||
}
|
||||
}
|
||||
|
||||
const std::vector<std::string> &margins = values(styles, "margin");
|
||||
std::vector<std::string> margins(values(styles, "margin"));
|
||||
if (!margins.empty() && margins.back() == "!important") {
|
||||
// Ignore the "!important" modifier for now
|
||||
margins.pop_back();
|
||||
}
|
||||
switch (margins.size()) {
|
||||
case 1:
|
||||
setLength(*entry, ZLTextStyleEntry::LENGTH_SPACE_BEFORE, margins[0]);
|
||||
|
|
Loading…
Reference in a new issue