This commit is contained in:
Kovid Goyal 2015-10-18 12:46:41 +05:30
parent bbca5330d8
commit 1c69f9783b

View File

@ -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: