<div id="test" style="border:solid;">hello</div>
Both Firefox and Internet Explorer return "medium".
Also see https://github.com/w3c/csswg-drafts/issues/1068 .
Corresponding Blink bug:
I changed the test case from Comment 0 into JSFiddle:
Link - https://jsfiddle.net/tx5pjqfo/show
All browsers (Safari Technology Preview 151, Chrome Canary 106 and Firefox Nightly 105) show alert with "undefined" value.
I am not sure whether this is something fixed or not? But all browsers are outputting same. Thanks!
This still reproduces as before - WebKit and Blink get "initial", Gecko gets "medium".
Blink has a patch posted for this in 2021, not landed yet.
The test isn't quite right, it lacks ".style". Here is a corrected one: https://jsfiddle.net/tmjL0fp8/