@@ -165,7 +165,7 @@ Values have the following meanings:
165
165
: <>
166
166
::
167
167
The [=offset path=] is a line
168
- extending from the [=offset starting position =]
168
+ extending from the [=ray()/origin =]
169
169
at some angle.
170
170
See [[#ray-function]] for details.
171
171
@@ -197,10 +197,14 @@ Values have the following meanings:
197
197
The [=offset path=] is the [=<basic-shape>/equivalent path=]
198
198
of the <> function.
199
199
200
- If ''circle()'' or ''ellipse()'' is used,
201
- and an explicit center position is not given,
202
- they default to using the [=offset starting position=] ,
203
- rather than their standard default.
200
+ For all <> s,
201
+ if they accept an
''at <>'' argument
202
+ but that argument is omitted,
203
+ and the element defines an [=offset starting position=]
204
+ via 'offset-position' ,
205
+ it uses the specified [=offset starting position=]
206
+ for that argument.
207
+ Otherwise it defaults as specified for each function.
204
208
205
209
The <> provides the [=/reference box=]
206
210
for the <> .
@@ -236,7 +240,7 @@ The ''ray()'' function defines an [=offset path=]
236
240
as a straight line emerging from a point at some defined angle:
237
241
238
242
239
- ray() = ray( <> && <> ? && contain? )
243
+ ray() = ray( <> && <> ? && contain? && [at <> ]? )
240
244
241
245
<ray-size> = closest-side | closest-corner | farthest-side | farthest-corner | sides
242
246
@@ -338,6 +342,28 @@ Its arguments are:
338
342
In other conditions this will act similarly
339
343
but might not give quite as optimal a result.
340
344
345
+
346
+
347
+ ::
348
+ Specifies the origin of the ray,
349
+ where the ray's line begins
350
+ (the 0% position).
351
+ It's resolved by using the
<>
352
+ to position a 0x0 object area
353
+ within the box's [=containing block=] .
354
+
355
+ If omitted, it uses the [=offset starting position=]
356
+ of the element,
357
+ given by 'offset-position' .
358
+
359
+ If the element doesn't have an [=offset starting position=] either,
360
+ it behaves as ''at center'' .
361
+
362
+ Note: ''ray()'' is currently only usable as an [=offset path=] .
363
+ If it ever gets extended to other uses,
364
+ its usage of 'offset-position'
365
+ will be limited solely to when it's an [=offset path=] ,
366
+ similar to other <> functions.
341
367
342
368
343
369
Issue: all of these examples need to be rewritten.
@@ -752,34 +778,38 @@ Starting Point Of The Path: the 'offset-position' property {#offset-position-pro
752
778
753
779
754
780
Name : offset-position
755
-
781
+ Value : normal | auto | <>
756
782
Initial : auto
757
783
Media : visual
758
784
Inherited : no
759
785
Applies to : [=transformable elements=]
760
786
Percentages : Refer to the size of containing block
761
- Computed value : The ''offset-position/auto'' keyword or a computed <>
787
+ Computed value : The ''offset-position/normal'' or ''offset-position/ auto'' keywords, or a computed <>
762
788
Animation type : by computed value
763
789
764
790
765
791
Specifies the offset starting position
766
- that is used by some of the <> functions,
767
- generally as a starting or "central" point.
768
-
769
- Issue: Currently, ''circle()'' and ''ellipse()'' [=offset paths=]
770
- use this position as their center,
771
- if the center position is omitted from their arguments.
772
- This is not an initial position, obviously.
773
- Whether this is desired is being discussed in
774
-
792
+ that is used by the <> functions
793
+ if they don't specify their own starting position.
775
794
776
795
Values are defined as follows:
777
796
778
797
798
+ : normal
799
+ ::
800
+ The element does not have an [=offset starting position=] .
801
+
779
802
: auto
780
803
::
781
804
The [=offset starting position=] is the top-left corner of the box.
782
805
806
+ Note: This is the top-left corner of the element's own box ,
807
+ not that of its [=containing block=] !
808
+ It's completely different from specifiying ''top left'' .
809
+ It's meant, for example,
810
+ to allow a ''path()'' to start relative
811
+ to the element's own position.
812
+
783
813
784
814
::
785
815
The
[=offset starting position=] is the result of using the
<>
0 commit comments