docs: def parse_responsive_length(responsive_length):
      """
      Takes a string containing a length definition in pixels or percent and parses it to obtain
      a computational length. It returns a tuple where the first element is the length in pixels and
      the second element is its length in percent divided by 100.
      Note that one of both returned elements is None.
      """
      responsive_length = responsive_length.strip()
      if responsive_length.endswith('px'):
          return (int(responsive_length.rstrip('px')), None)
      elif responsive_length.endswith('%'):
          return (None, float(responsive_length.rstrip('%')) / 100)
      return (None, None)