In dart:html we generated many common CSS properties as properties, so you wouldn't have to call setProperty by hand. Browsers anyways accept setting these directly by assigning the underlying property on the css declaration object.
See for example: https://github.com/dart-lang/sdk/blob/main/tools/dom/scripts/CSSPropertyNames.in