Missed a couple of cssValue usages

This commit is contained in:
Kovid Goyal 2021-06-24 11:21:01 +05:30
parent efdf661457
commit 42c85dfab8
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -146,7 +146,7 @@ class StylizerRules(object):
name = prop.name name = prop.name
normalizer = normalizers.get(name, None) normalizer = normalizers.get(name, None)
if normalizer is not None: if normalizer is not None:
style.update(normalizer(name, prop.cssValue)) style.update(normalizer(name, prop.propertyValue))
elif name == 'text-align': elif name == 'text-align':
style['text-align'] = self._apply_text_align(prop.value) style['text-align'] = self._apply_text_align(prop.value)
else: else:
@ -514,7 +514,7 @@ class Style(object):
if val is not None: if val is not None:
try: try:
style = parseStyle('background: '+val, validate=False) style = parseStyle('background: '+val, validate=False)
val = style.getProperty('background').cssValue val = style.getProperty('background').propertyValue
try: try:
val = list(val) val = list(val)
except: except: