The offsetWidth spec:
- Says "the first CSS layout box" but great if we can define what the "first" means more clearly.
- Isn't as clear what to do when the width or height is zero as the
getBoundingClientRect spec is.
From a few quick testing for an inline box:
- When the inline box is line-fragmented, all 3 impls include all fragments.
- When the inline box contains an in-flow block-level box, Gecko includes it and also inline boxes after the block-level box, while Blink/WebKit ignore them. Blink may try to change this though.
- WebKit includes width of boxes whose height is zero, while Blink/Gecko does not.