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
Copy file name to clipboardExpand all lines: css-link-params-1/Overview.bs
+28-14Lines changed: 28 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -23,6 +23,9 @@ spec:html; type:element
23
23
text: a
24
24
spec:fill-stroke-3; type:property; text:fill
25
25
spec:css-env-1; type:function; text:env()
26
+
spec:scroll-to-text-fragment; type:dfn;
27
+
text:fragment directive
28
+
text:text directive
26
29
</pre>
27
30
28
31
Introduction {#intro}
@@ -48,7 +51,8 @@ are a way to set CSS <a>custom environment variables</a> on an "external" resour
48
51
either by a CSS property
49
52
or thru a special fragment scheme on the URL.
50
53
This gives a limited, but powerful, subset of the customizability that "inline" SVG images have
51
-
to "external" SVG images.
54
+
to "external" SVG images,
55
+
or to other linked resources that use CSS to style themselves.
52
56
53
57
A [=link parameter=] is a pair of a <<dashed-ident>> name,
54
58
and an arbitrary (possibly empty) <<declaration-value>> value.
@@ -70,7 +74,7 @@ and an arbitrary (possibly empty) <<declaration-value>> value.
70
74
in several ways:
71
75
72
76
<xmp highlight=html>
73
-
<img src="image.svg#param(--color,green)">
77
+
<img src="image.svg#:~:param(--color,green)">
74
78
</xmp>
75
79
76
80
<pre highlight=css>
@@ -99,7 +103,7 @@ There are three ways to specify a [=link parameter=]:
99
103
which applies to the resource itself
100
104
(if the element represents an external resource),
101
105
and to all external resources used in CSS properties on the element
102
-
* via a special syntax in the fragment portion of the URL of an external resource
106
+
* via a [=fragment directive=] directly in the URL of an external resource.
103
107
* via a ''param()'' argument in the ''url()'' syntax
104
108
105
109
If specified in multiple of these ways,
@@ -108,7 +112,7 @@ for the external resource,
108
112
in the order:
109
113
110
114
1. the 'link-parameters' property on the element, if relevant
111
-
2. the [=param()=]URL fragment identifiers
115
+
2. the [=link parameter directives=]of the URL
112
116
3. the ''param()''<<url-modifier>>s in ''url()''
113
117
114
118
If multiple [=link parameters=] exist with the same name,
@@ -163,33 +167,43 @@ It has the syntax:
163
167
In The URL {#url-frag}
164
168
----------
165
169
166
-
A special "fragment identifier" can be used in the <a for=url>fragment</a> of a URL
167
-
used to reference an external resource.
168
-
Several examples of existing "fragment identifiers" for SVG documents can be found in <a href="http://www.w3.org/TR/SVG/linking.html#LinksIntoSVG">the SVG 1.1 specification</a>.
170
+
[=Link parameters=] can be passed to an external resource directly,
171
+
as a [=fragment directive=].
169
172
170
-
The syntax of an <dfn export local-lt="param()">SVG parameter fragment identifier</dfn> is:
173
+
Note: [=Text directives=] are another example of [=fragment directives=],
174
+
letting you link to specific text somewhere in a document.
0 commit comments