[css-shapes] add two clauses to serialization