|
27 | 27 |
|
28 | 28 | <h1 id=cssom-view-module>CSSOM View Module</h1> |
29 | 29 |
|
30 | | - <h2 class="no-num no-toc" id=w3c-doctype>Editor's Draft 8 April 2010</h2> |
| 30 | + <h2 class="no-num no-toc" id=w3c-doctype>Editor's Draft 9 April 2010</h2> |
31 | 31 |
|
32 | 32 | <dl> |
33 | 33 | <dt>This Version: |
34 | 34 |
|
35 | 35 | <dd><a |
36 | | - href="http://www.w3.org/TR/2010/ED-cssom-view-20100408/">http://www.w3.org/TR/2010/ED-cssom-view-20100408/</a> |
| 36 | + href="http://www.w3.org/TR/2010/ED-cssom-view-20100409/">http://www.w3.org/TR/2010/ED-cssom-view-20100409/</a> |
37 | 37 |
|
38 | 38 | <dt>Latest Version: |
39 | 39 |
|
@@ -532,18 +532,18 @@ <h3 id=the-screen-interface><span class=secno>4.2. </span>The <code |
532 | 532 | };</pre> |
533 | 533 |
|
534 | 534 | <p>The <dfn id=dom-screen-availwidth><code>availWidth</code></dfn> |
535 | | - attribute, on getting, <em class=ct>must</em> return the available width |
536 | | - of the rendering surface of the output device. |
| 535 | + attribute <em class=ct>must</em> return the available width of the |
| 536 | + rendering surface of the output device. |
537 | 537 |
|
538 | 538 | <p>The <dfn id=dom-screen-availheight><code>availHeight</code></dfn> |
539 | | - attribute, on getting, <em class=ct>must</em> return the available height |
540 | | - of the rendering surface of the output device. |
| 539 | + attribute <em class=ct>must</em> return the available height of the |
| 540 | + rendering surface of the output device. |
541 | 541 |
|
542 | | - <p>The <dfn id=dom-screen-width><code>width</code></dfn> attribute, on |
543 | | - getting, <em class=ct>must</em> return the width of the output device. |
| 542 | + <p>The <dfn id=dom-screen-width><code>width</code></dfn> attribute <em |
| 543 | + class=ct>must</em> return the width of the output device. |
544 | 544 |
|
545 | | - <p>The <dfn id=dom-screen-height><code>height</code></dfn> attribute, on |
546 | | - getting, <em class=ct>must</em> return the height of the output device. |
| 545 | + <p>The <dfn id=dom-screen-height><code>height</code></dfn> attribute <em |
| 546 | + class=ct>must</em> return the height of the output device. |
547 | 547 |
|
548 | 548 | <p>The <dfn id=dom-screen-colordepth><code>colorDepth</code></dfn> and <dfn |
549 | 549 | id=dom-screen-pixeldepth><code>pixelDepth</code></dfn> attributes <em |
@@ -945,40 +945,36 @@ <h3 id=client-attributes><span class=secno>7.3. </span>The <code |
945 | 945 | <p>The <dfn id=dom-element-clienttop><code>clientTop</code></dfn>, <dfn |
946 | 946 | id=dom-element-clientleft><code>clientLeft</code></dfn>, <dfn |
947 | 947 | id=dom-element-clientwidth><code>clientWidth</code></dfn>, and <dfn |
948 | | - id=dom-element-clientheight><code>clientHeight</code></dfn> attributes, on |
949 | | - getting, <em class=ct>must</em> return zero if the element does not have |
950 | | - an associated CSS layout box or if the layout box is inline. Otherwise, |
951 | | - these attributes <em class=ct>must</em> behave as defined in the remainder |
952 | | - of this section. |
953 | | - |
954 | | - <p>On getting, the <code><a |
955 | | - href="#dom-element-clienttop">clientTop</a></code> attribute returns the |
956 | | - computed value of the <code>border-top-width</code> property plus the |
957 | | - width of any scrollbar rendered between the top <a |
| 948 | + id=dom-element-clientheight><code>clientHeight</code></dfn> attributes <em |
| 949 | + class=ct>must</em> return zero if the element does not have an associated |
| 950 | + CSS layout box or if the layout box is inline. Otherwise, these attributes |
| 951 | + <em class=ct>must</em> behave as defined in the remainder of this section. |
| 952 | + |
| 953 | + <p>The <code><a href="#dom-element-clienttop">clientTop</a></code> |
| 954 | + attribute returns the computed value of the <code>border-top-width</code> |
| 955 | + property plus the width of any scrollbar rendered between the top <a |
958 | 956 | href="#padding-edge">padding edge</a> and the top <a |
959 | 957 | href="#border-edge">border edge</a>. |
960 | 958 |
|
961 | | - <p>On getting, the <code><a |
962 | | - href="#dom-element-clientleft">clientLeft</a></code> attribute returns the |
963 | | - computed value of the <code>border-left-width</code> property plus the |
964 | | - width of any scrollbar rendered between the left <a |
| 959 | + <p>The <code><a href="#dom-element-clientleft">clientLeft</a></code> |
| 960 | + attribute returns the computed value of the <code>border-left-width</code> |
| 961 | + property plus the width of any scrollbar rendered between the left <a |
965 | 962 | href="#padding-edge">padding edge</a> and the left <a |
966 | 963 | href="#border-edge">border edge</a>. |
967 | 964 |
|
968 | | - <p>On getting, the <code><a |
969 | | - href="#dom-element-clientwidth">clientWidth</a></code> attribute returns |
970 | | - the <a href="#viewport">viewport</a> width excluding the size of a |
971 | | - rendered scroll bar (if any) if the element is the root element and the |
972 | | - width of the <a href="#padding-edge">padding edge</a> (excluding the width |
973 | | - of any rendered scrollbar between the <a href="#padding-edge">padding |
974 | | - edge</a> and the <a href="#border-edge">border edge</a>) otherwise. |
975 | | - |
976 | | - <p>On getting, the <code><a |
977 | | - href="#dom-element-clientheight">clientHeight</a></code> attribute returns |
978 | | - the <a href="#viewport">viewport</a> height excluding the size of a |
979 | | - rendered scroll bar (if any) if the element is the root element and the |
980 | | - height of the <a href="#padding-edge">padding edge</a> (excluding the |
981 | | - width of any rendered scrollbar between the <a |
| 965 | + <p>The <code><a href="#dom-element-clientwidth">clientWidth</a></code> |
| 966 | + attribute returns the <a href="#viewport">viewport</a> width excluding the |
| 967 | + size of a rendered scroll bar (if any) if the element is the root element |
| 968 | + and the width of the <a href="#padding-edge">padding edge</a> (excluding |
| 969 | + the width of any rendered scrollbar between the <a |
| 970 | + href="#padding-edge">padding edge</a> and the <a |
| 971 | + href="#border-edge">border edge</a>) otherwise. |
| 972 | + |
| 973 | + <p>The <code><a href="#dom-element-clientheight">clientHeight</a></code> |
| 974 | + attribute returns the <a href="#viewport">viewport</a> height excluding |
| 975 | + the size of a rendered scroll bar (if any) if the element is the root |
| 976 | + element and the height of the <a href="#padding-edge">padding edge</a> |
| 977 | + (excluding the width of any rendered scrollbar between the <a |
982 | 978 | href="#padding-edge">padding edge</a> and the <a |
983 | 979 | href="#border-edge">border edge</a>) otherwise. |
984 | 980 |
|
@@ -1240,53 +1236,53 @@ <h2 id=extensions-to-the-mouseevent-interface><span class=secno>10. |
1240 | 1236 | this somehow? |
1241 | 1237 |
|
1242 | 1238 | <p>The <dfn id=dom-mouseevent-screenx |
1243 | | - title=dom-mouseevent-screenx><code>screenX</code></dfn> attribute, on |
1244 | | - getting, <em class=ct>must</em> return the x-coordinate of the position |
1245 | | - where the event occurred relative to the origin of the screen. |
| 1239 | + title=dom-mouseevent-screenx><code>screenX</code></dfn> attribute <em |
| 1240 | + class=ct>must</em> return the x-coordinate of the position where the event |
| 1241 | + occurred relative to the origin of the screen. |
1246 | 1242 |
|
1247 | 1243 | <p>The <dfn id=dom-mouseevent-screeny |
1248 | | - title=dom-mouseevent-screeny><code>screenY</code></dfn> attribute, on |
1249 | | - getting, <em class=ct>must</em> return the y-coordinate of the position |
1250 | | - where the event occurred relative to the origin of the screen. |
| 1244 | + title=dom-mouseevent-screeny><code>screenY</code></dfn> attribute <em |
| 1245 | + class=ct>must</em> return the y-coordinate of the position where the event |
| 1246 | + occurred relative to the origin of the screen. |
1251 | 1247 |
|
1252 | | - <p>The <dfn id=dom-mouseevent-pagex><code>pageX</code></dfn> attribute, on |
1253 | | - getting, <em class=ct>must</em> return the horizontal coordinate of the |
1254 | | - position where the event occurred relative to the origin of the <a |
| 1248 | + <p>The <dfn id=dom-mouseevent-pagex><code>pageX</code></dfn> attribute <em |
| 1249 | + class=ct>must</em> return the horizontal coordinate of the position where |
| 1250 | + the event occurred relative to the origin of the <a |
1255 | 1251 | href="#initial-containing-block">initial containing block</a>. |
1256 | 1252 |
|
1257 | | - <p>The <dfn id=dom-mouseevent-pagey><code>pageY</code></dfn> attribute, on |
1258 | | - getting, <em class=ct>must</em> return the y-coordinate of the position |
1259 | | - where the event occurred relative to the origin of the <a |
| 1253 | + <p>The <dfn id=dom-mouseevent-pagey><code>pageY</code></dfn> attribute <em |
| 1254 | + class=ct>must</em> return the y-coordinate of the position where the event |
| 1255 | + occurred relative to the origin of the <a |
1260 | 1256 | href="#initial-containing-block">initial containing block</a>. |
1261 | 1257 |
|
1262 | | - <p>The <dfn id=dom-mouseevent-clientx><code>clientX</code></dfn> attribute, |
1263 | | - on getting, <em class=ct>must</em> return the x-coordinate of the position |
1264 | | - where the event occurred relative to the origin of the <a |
| 1258 | + <p>The <dfn id=dom-mouseevent-clientx><code>clientX</code></dfn> attribute |
| 1259 | + <em class=ct>must</em> return the x-coordinate of the position where the |
| 1260 | + event occurred relative to the origin of the <a |
1265 | 1261 | href="#viewport">viewport</a>. |
1266 | 1262 |
|
1267 | | - <p>The <dfn id=dom-mouseevent-clienty><code>clientY</code></dfn> attribute, |
1268 | | - on getting, <em class=ct>must</em> return the y-coordinate of the position |
1269 | | - where the event occurred relative to the origin of the <a |
| 1263 | + <p>The <dfn id=dom-mouseevent-clienty><code>clientY</code></dfn> attribute |
| 1264 | + <em class=ct>must</em> return the y-coordinate of the position where the |
| 1265 | + event occurred relative to the origin of the <a |
1270 | 1266 | href="#viewport">viewport</a>. |
1271 | 1267 |
|
1272 | 1268 | <p>The <dfn id=dom-mouseevent-x title=dom-mouseevent-x><code>x</code></dfn> |
1273 | | - attribute, on getting, <em class=ct>must</em> return the value of <code><a |
| 1269 | + attribute <em class=ct>must</em> return the value of <code><a |
1274 | 1270 | href="#dom-mouseevent-clientx">clientX</a></code>. |
1275 | 1271 |
|
1276 | 1272 | <p>The <dfn id=dom-mouseevent-y title=dom-mouseevent-y><code>y</code></dfn> |
1277 | | - attribute, on getting, <em class=ct>must</em> return the value of <code><a |
| 1273 | + attribute <em class=ct>must</em> return the value of <code><a |
1278 | 1274 | href="#dom-mouseevent-clienty">clientY</a></code>.</p> |
1279 | 1275 | <!-- x/y do not match IE in the position:relative case but do match other |
1280 | 1276 | browsers --> |
1281 | 1277 |
|
1282 | | - <p>The <dfn id=dom-mouseevent-offsetx><code>offsetX</code></dfn> attribute, |
1283 | | - on getting, <em class=ct>must</em> return the x-coordinate of the position |
1284 | | - where the event occurred relative to the origin of the <a |
| 1278 | + <p>The <dfn id=dom-mouseevent-offsetx><code>offsetX</code></dfn> attribute |
| 1279 | + <em class=ct>must</em> return the x-coordinate of the position where the |
| 1280 | + event occurred relative to the origin of the <a |
1285 | 1281 | href="#padding-edge">padding edge</a> of the target node. |
1286 | 1282 |
|
1287 | | - <p>The <dfn id=dom-mouseevent-offsety><code>offsetY</code></dfn> attribute, |
1288 | | - on getting, <em class=ct>must</em> return the y-coordinate of the position |
1289 | | - where the event occurred relative to the origin of the <a |
| 1283 | + <p>The <dfn id=dom-mouseevent-offsety><code>offsetY</code></dfn> attribute |
| 1284 | + <em class=ct>must</em> return the y-coordinate of the position where the |
| 1285 | + event occurred relative to the origin of the <a |
1290 | 1286 | href="#padding-edge">padding edge</a> of the target node. |
1291 | 1287 |
|
1292 | 1288 | <h2 id=rectangles><span class=secno>11. </span>Rectangles</h2> |
@@ -1337,37 +1333,36 @@ <h3 id=the-clientrect-interface><span class=secno>11.2. </span>The <code |
1337 | 1333 | };</pre> |
1338 | 1334 |
|
1339 | 1335 | <p>The <dfn id=dom-clientrect-top |
1340 | | - title=dom-clientrect-top><code>top</code></dfn> attribute, on getting, <em |
| 1336 | + title=dom-clientrect-top><code>top</code></dfn> attribute <em |
1341 | 1337 | class=ct>must</em> return the y-coordinate, relative to the <a |
1342 | 1338 | href="#viewport">viewport</a> origin, of the top of the rectangle box. |
1343 | 1339 |
|
1344 | 1340 | <p>The <dfn id=dom-clientrect-right |
1345 | | - title=dom-clientrect-right><code>right</code></dfn> attribute, on getting, |
1346 | | - <em class=ct>must</em> return the x-coordinate, relative to the <a |
| 1341 | + title=dom-clientrect-right><code>right</code></dfn> attribute <em |
| 1342 | + class=ct>must</em> return the x-coordinate, relative to the <a |
1347 | 1343 | href="#viewport">viewport</a> origin, of the right of the rectangle box. |
1348 | 1344 |
|
1349 | 1345 | <p>The <dfn id=dom-clientrect-bottom |
1350 | | - title=dom-clientrect-bottom><code>bottom</code></dfn> attribute, on |
1351 | | - getting, <em class=ct>must</em> return the y-coordinate, relative to the |
1352 | | - <a href="#viewport">viewport</a> origin, of the bottom of the rectangle |
1353 | | - box. |
| 1346 | + title=dom-clientrect-bottom><code>bottom</code></dfn> attribute <em |
| 1347 | + class=ct>must</em> return the y-coordinate, relative to the <a |
| 1348 | + href="#viewport">viewport</a> origin, of the bottom of the rectangle box. |
1354 | 1349 |
|
1355 | 1350 | <p>The <dfn id=dom-clientrect-left |
1356 | | - title=dom-clientrect-left><code>left</code></dfn> attribute, on getting, |
1357 | | - <em class=ct>must</em> return the x-coordinate, relative to the <a |
| 1351 | + title=dom-clientrect-left><code>left</code></dfn> attribute <em |
| 1352 | + class=ct>must</em> return the x-coordinate, relative to the <a |
1358 | 1353 | href="#viewport">viewport</a> origin, of the left of the rectangle box. |
1359 | 1354 |
|
1360 | 1355 | <p>The <dfn id=dom-clientrect-width |
1361 | | - title=dom-clientrect-width><code>width</code></dfn> attribute, on getting, |
1362 | | - <em class=ct>must</em> return the width of the rectangle box. |
| 1356 | + title=dom-clientrect-width><code>width</code></dfn> attribute <em |
| 1357 | + class=ct>must</em> return the width of the rectangle box. |
1363 | 1358 |
|
1364 | 1359 | <p class=note>This is identical to <code title=dom-clientrect-right><a |
1365 | 1360 | href="#dom-clientrect-right">right</a></code> minus <code |
1366 | 1361 | title=dom-clientrect-left><a href="#dom-clientrect-left">left</a></code>. |
1367 | 1362 |
|
1368 | 1363 | <p>The <dfn id=dom-clientrect-height |
1369 | | - title=dom-clientrect-height><code>height</code></dfn> attribute, on |
1370 | | - getting, <em class=ct>must</em> return the height of the rectangle box. |
| 1364 | + title=dom-clientrect-height><code>height</code></dfn> attribute <em |
| 1365 | + class=ct>must</em> return the height of the rectangle box. |
1371 | 1366 |
|
1372 | 1367 | <p class=note>This is identical to <code title=dom-clientrect-bottom><a |
1373 | 1368 | href="#dom-clientrect-bottom">bottom</a></code> minus <code |
|
0 commit comments