def setCSSString(self, css):
        """Sets the position attributes using CSS syntax. Attributes not
        included in the string are reset to their unset states.

        C{setCSSString("top:10px;left:20%;z-index:16;")}
        """
        self._topValue = self._bottomValue = None
        self._rightValue = self._leftValue = None
        self._topUnits = self._bottomUnits = 0
        self._rightUnits = self._leftUnits = 0
        self._zIndex = -1

        if css is None:
            return

        cssProperties = css.split(';')
        for i in range(len(cssProperties)):
            keyValuePair = cssProperties[i].split(':')
            key = keyValuePair[0].strip()
            if key == '':
                continue

            if key == 'z-index':
                self._zIndex = int( keyValuePair[1].strip() )
            else:
                if 1 > len(keyValuePair):
                    value = keyValuePair[1].strip()
                else:
                    value = ''

                unit = re.sub('[0-9\\.\\-]+', '', value)
                if not (unit == ''):
                    value = value[:value.find(unit)].strip()

                v = float(value)
                unitInt = self.parseCssUnit(unit)

                if key == 'top':
                    self._topValue = v
                    self._topUnits = unitInt

                elif key == 'right':
                    self._rightValue = v
                    self._rightUnits = unitInt

                elif key == 'bottom':
                    self._bottomValue = v
                    self._bottomUnits = unitInt

                elif key == 'left':
                    self._leftValue = v
                    self._leftUnits = unitInt

        self._layout.requestRepaint()
dataset/ETHPy150Open rwl/muntjac/muntjac/ui/absolute_layout.py/ComponentPosition.setCSSString/swapped operands of `>`