Subpixel precision for clientWidth, offsetWidth, scrollTop, et al (deprecated)

The latest draft of the CSS OM spec changed the type for a number of Element and HTMLElement properties from long to float. Specifically the following properties: Element::clientHeight Element::clientWidth Element::clientLeft Element::clientTop Element::scrollTop Element::scrollLeft Element::scrollWidth Element::scrollHeight HTMLElement::offsetWidth HTMLElement::offsetHeight HTMLElement::offsetTop HTMLElement::offsetLeft


This could have compatibility issues as we are changing the data type for existing properties. Some websites may depend on the values being integers.



Editor's draft

Status in Chromium


No longer pursuing (tracking bug)

Consensus & Standardization

  • No public signals
  • No public signals
  • No public signals
  • Positive


Last updated on 2017-06-14