Add toCSS method for roundtripping.