Firefox 161 adds the CSS Typed Object Model, so all major engines support it. Read and write CSS values as typed objects, with tested examples.