Make width with % and px

This commit is contained in:
Kiryl
2022-09-21 20:09:05 +03:00
parent 5f0560fe59
commit 7e02fe117d

View File

@@ -38,7 +38,7 @@ class StyleReader:
"margin-left": lambda x: self.convert_tag_style_values(x, is_indent=True),
"margin-top": lambda x: self.convert_tag_style_values(x, is_indent=True),
"margin": lambda x: self.convert_tag_style_values(x, is_indent=True),
"width": self.convert_tag_style_values,
"width": lambda x: self.convert_tag_style_values(x) if "%" not in x else x
}
@staticmethod