Consistency: context instead of ctx
Make it possible to transform CSS into style attributes
Remove duplicated code