Пример #1
0
 def __getitem__(self, name):
     domname = cssproperties._toDOMname(name)
     if hasattr(self, domname):
         return getattr(self, domname)
     return self._unit_convert(self._get(name))
Пример #2
0
 def __getitem__(self, name):
     domname = cssproperties._toDOMname(name)
     if hasattr(self, domname):
         return getattr(self, domname)
     return self._unit_convert(self._get(name))