mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
bbca5330d8
commit
1c69f9783b
@ -2,14 +2,14 @@
|
||||
# License: GPL v3 Copyright: 2015, Kovid Goyal <kovid at kovidgoyal.net>
|
||||
|
||||
simple_vendor_prefixes = {
|
||||
'transform': v"['webkit', 'ms']",
|
||||
'transform': v"['webkit', 'ms', 'moz']",
|
||||
}
|
||||
|
||||
def set_css(elem, **kw):
|
||||
s = elem.style
|
||||
if s:
|
||||
for prop in kw:
|
||||
name, val = str.replace(prop, '_', '-'), kw[prop]
|
||||
name, val = str.replace(str.rstrip(prop, '_'), '_', '-'), kw[prop]
|
||||
s.setProperty(name, val)
|
||||
prefixes = simple_vendor_prefixes[name]
|
||||
if prefixes:
|
||||
|
Loading…
x
Reference in New Issue
Block a user