You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<pclass="issue">These attributes are concerned about the "padding box"
1766
-
excluding size taken up by scrollbars...</p>
1767
-
<!--
1768
-
The clientWidth and clientHeight of element A is the width and height of the padding box, excluding any horizontal or vertical scrollbar generated by the element.
1769
-
1770
-
In strict mode clientWidth and clientHeight of the root element (HTML) is the viewport (initial containing block) width and height.
1771
-
1772
-
In quirks mode clientWidth and clientHeight of the BODY element is the viewport (initial containing block) width and height. In quirks mode clientWidth and clientHeight of the root element (HTML) is viewport (initial containing block) width and root element padding height.
1773
-
1774
-
What clientWidth and clientHeight are when A is an inline box is not defined.
1772
+
<p>The <dfn><code>clientTop</code></dfn> attribute of element <var>A</var>
1773
+
<emclass="ct">must</em> be the computed value of the
1774
+
<code>border-top-width</code> property in pixels plus the width of any
1775
+
scrollbar in pixels rendered between the top padding box and top border
1776
+
box.</p>
1775
1777
1776
-
-->
1778
+
<p>The <dfn><code>clientLeft</code></dfn> attribute of element <var>A</var>
1779
+
<emclass="ct">must</em> be the computed value of the
1780
+
<code>border-left-width</code> property in pixels plus the width of any
1781
+
scrollbar in pixels rendered between the left padding box and left border
1782
+
box.</p>
1777
1783
1778
-
<divclass="issue">
1784
+
<p>The <dfn><code>clientWidth</code></dfn> attribute of element <var>A</var>
1785
+
<emclass="ct">must</em> be the width of the padding box (excluding the width
1786
+
of any rendered scrollbar between the padding and border box).</p>
1779
1787
1780
-
<pre>So client* 0,0 area is the top left padding edge of the element.
1788
+
<p>The <dfn><code>clientHeight</code></dfn> attribute of element <var>A</var>
1789
+
<emclass="ct">must</em> be the height of the padding box (excluding the width
1790
+
of any rendered scrollbar between the padding and border box).</p>
1781
1791
1782
-
clientWidth for block level elments (at least) is therefore "padding-left +
1783
-
width + padding-right" (scrollbar excluded) and clientHeight
0 commit comments