Skip to content

Commit 53cf13a

Browse files
committed
[css-shapes] link to closest-side definition
Use ''closest-side'' syntax so the keyword is formatted as CSS syntax. Use link-defaults to prevent definitions in css-images-3 or motion-1 from being chosen by bikeshed. Use `<a href="#closest-side">` to link to the definition in CSS Shapes. Note: If basic shapes including the closest-side keyword were defined inside a property such as shape-outside, we could use the ''shape-outide/closest-side'' bikeshed syntax.
1 parent bebe3a0 commit 53cf13a

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

css-egg-1/Overview.bs

+9-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,15 @@ TR: https://www.w3.org/TR/css-egg/
1010
ED: https://drafts.csswg.org/css-egg/
1111
Editor: Florian Rivoal, Invited Expert, https://florian.rivoal.net, w3cid 43241
1212
Abstract: This module extends the vocabulary of CSS with terms frequently used in certain domains, making it easier for authors to write understandable and maintainable style sheets.
13-
Link Defaults: css-values-3 (type) <time>
13+
</pre>
14+
15+
<pre class="link-defaults">
16+
spec:css-images-3; type:value;
17+
text: closest-side
18+
text: farthest-side
19+
text: closest-corner
20+
text: farthest-corner
21+
spec:css-values-3; type:type; text:<time>
1422
</pre>
1523

1624
<style type="text/css">

css-shapes-1/Overview.bs

+4-1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ Link Defaults: css2 (property) margin
1919
spec:css-masking-1; type: value
2020
text: nonzero
2121
text: evenodd
22+
spec:css-shapes; type: value
23+
text: closest-side
24+
text: farthest-side
2225
</pre>
2326

2427
<style type="text/css">
@@ -599,7 +602,7 @@ Interpolation of Basic Shapes</h3>
599602
If both shapes are the same type,
600603
that type is ''ellipse()'' or ''circle()'',
601604
and none of the radii use
602-
the ''closest-side'' or ''farthest-side'' keywords,
605+
the <a href="#closest-side">''closest-side''</a> or <a href="#farthest-side">''farthest-side''</a> keywords,
603606
interpolate between each value
604607
in the shape functions.
605608
</li>

0 commit comments

Comments
 (0)