@@ -153,19 +153,19 @@ Values have the following meanings:
153153 <b> <size></b> = [ closest-side | closest-corner | farthest-side | farthest-corner | sides ]
154154
155155 <dl dfn-for="<size> ">
156- <dt> <dfn>closest-side</dfn> </dt>
157- <dd> The distance is measured between the initial position and the closest side
158- of the box from it.</dd>
156+ <dt> <dfn for="<size>" id=size-closest-side >closest-side</dfn> </dt>
157+ <dd> The perpendicular distance is measured between the initial position and the
158+ closest side of the box from it.</dd>
159159
160- <dt> <dfn>closest-corner</dfn> </dt>
160+ <dt> <dfn for="<size>" id=size-closest-corner >closest-corner</dfn> </dt>
161161 <dd> The distance is measured between the initial position and the closest corner
162162 of the box from it.</dd>
163163
164- <dt> <dfn>farthest-side</dfn> </dt>
165- <dd> The distance is measured between the initial position and the farthest side
166- of the box from it.</dd>
164+ <dt> <dfn for="<size>" id=size-farthest-side >farthest-side</dfn> </dt>
165+ <dd> The perpendicular distance is measured between the initial position and the
166+ farthest side of the box from it.</dd>
167167
168- <dt> <dfn>farthest-corner</dfn> </dt>
168+ <dt> <dfn for="<size>" id=size-farthest-corner >farthest-corner</dfn> </dt>
169169 <dd> The distance is measured between the initial position and the farthest corner
170170 of the box from it.</dd>
171171
@@ -175,6 +175,9 @@ Values have the following meanings:
175175 <p class='note'> Note: When the initial position is on one of the edges of
176176 the containing block, the closest side takes the edge that the initial position
177177 is on, and thus the path length used for percentage 'offset-distance' values is 0.</p>
178+ <p class='note'> Note: When <a href="#size-closest-side">closest-side</a> or
179+ <a href="#size-farthest-side">farthest-side</a> are used, and the initial
180+ position is outside the box, the sides are considered to extend indefinitely.</p>
178181 </dd>
179182
180183 <dt> <dfn>contain</dfn> </dt>
@@ -255,6 +258,7 @@ Values have the following meanings:
255258 <img alt="An image of boxes positioned with contain" src="images/offset_distance_with_contain.png" style="width: 200px;"/>
256259 <figcaption> 'offset-path' with 'contain' </figcaption>
257260 </figure>
261+
258262 In the third example, the path size is increased so that the box can be contained. The <a>used offset distance</a> is negative.
259263 <pre class="lang-html">
260264 <style>
@@ -285,6 +289,39 @@ Values have the following meanings:
285289 <img alt="An image of an increased path size" src="images/increase-size.svg" style="width: 400px; height: 335;"/>
286290 <figcaption> 'offset-path' with path size increased</figcaption>
287291 </figure>
292+
293+ In the fourth example, the initial position is outside the containing block.
294+ <pre class="lang-html">
295+ <style>
296+ #container {
297+ transform-style: preserve-3d;
298+ width: 200px;
299+ height: 200px;
300+ }
301+ .box {
302+ width: 20%;
303+ height: 20%;
304+ offset-position: 140% 70%;
305+ offset-distance: 100%;
306+ }
307+ #redBox {
308+ background-color: red;
309+ offset-path: ray(-90deg sides);
310+ }
311+ #blueBox {
312+ background-color: blue;
313+ offset-path: ray(180deg closest-side);
314+ }
315+ </style>
316+ <div id="container">
317+ <div class="box" id="redBox"></div>
318+ <div class="box" id="blueBox"></div>
319+ </div>
320+ </pre>
321+ <figure>
322+ <img alt="An image with initial position outside the containing block" src="images/initial-outside.svg" style="width: 700px;" />
323+ <figcaption> Initial position outside the containing block</figcaption>
324+ </figure>
288325 </div>
289326
290327 <dt> <<basic-shape>> || <<geometry-box>> </dt>
0 commit comments