This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 29603 - client* on the root element are not very consistent
Summary: client* on the root element are not very consistent
Status: NEW
Alias: None
Product: CSS
Classification: Unclassified
Component: CSSOM View (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Simon Pieters
QA Contact: public-css-bugzilla
Depends on:
Reported: 2016-04-29 21:17 UTC by Boris Zbarsky
Modified: 2016-04-29 21:17 UTC (History)
0 users

See Also:


Description Boris Zbarsky 2016-04-29 21:17:43 UTC
clientWidth/Height return the viewport dimensions, whereas clientLeft/Top return the border width of the root element.  The combination of these behaviors is not very helpful: the different client* measurements are referring to totally different rectangles.

I think clientLeft/Top should return 0 in exactly the cases when clientWidth/Height map to viewport dimensions.