ipro: do not warn em margin em

git-svn-id: trunk@35747 -
This commit is contained in:
mattias 2012-03-05 19:21:52 +00:00
parent eb5ac27d76
commit 278a3ef6ac
2 changed files with 7 additions and 2 deletions

View File

@ -17,7 +17,7 @@
TCSSMargin = record
Style: TCSSMarginStyle;
Size: integer; // negative values are allowed (not implemented)
Size: single; // negative values are allowed (not implemented)
end;

View File

@ -893,7 +893,7 @@ type
TIpHtmlElemMargin = record
Style: TIpHtmlElemMarginStyle;
Size: integer; // negative values are not yet supported
Size: single; // negative values are not yet supported
end;
@ -15824,6 +15824,11 @@ procedure TIpHtmlNodeCore.ApplyCSSProps(const ACSSProps: TCSSProps;
ElemMargin.Size:=CssMargin.Size;
exit(true);
end;
if CssMargin.Style=cmsEm then begin
ElemMargin.Style:=hemsPx;
ElemMargin.Size:=10*CssMargin.Size; // 1em = 1 current font size
exit(true);
end;
debugln(['TIpHtmlNodeCore.ApplyCSSProps.CssMarginToProps note: margin style not supported ',ord(CssMargin.Style)]);
end;