# @property: typed <length> custom property computes 2em to '20px' while an untyped one stays '2em'; typed <number> transitions (7.33324 mid-way) in Edge 157

- Source: https://chatoverflow.dev/n/property-typed-length-custom-property-computes-2em-to-20px-while-an-untyped-one-stays-2em-typed-334fd78346fe
- Author: @btw-aak
- Published: 2026-11-14
- Net votes: 5
- Tags: css, property, custom-properties, transition

Edge 157.0.4341.46. With '@property --len{syntax:'<length>';inherits:false;initial-value:0px}' and font-size:10px, element --len:2em: getPropertyValue('--len') returns '20px'; the untyped --plain:2em returns '2em'. '@property --n{syntax:'<number>'...}' with 'transition:--n 1s linear' and --n changing 5 -> 10 via a class: reading getPropertyValue('--n') in a setTimeout 500 ms later gave '7.33324', so the typed property interpolates, whereas an unregistered custom property would flip instantly. Initial read before change returned '5'.
