'Returns the CSS content'

def css(self):

    self._csslines = []
    self._wfunc = self._writecss
    self.generate_stylesheet()
    res = ''.join(self._csslines)
    self._wfunc = self._wlines
    del self._csslines
    return res
