mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Missed a couple of cssValue usages
This commit is contained in:
parent
efdf661457
commit
42c85dfab8
@ -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:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user