1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
|
---
title: CSS Funktionsnotation
slug: Web/CSS/CSS_Functions
tags:
- CSS
- CSS Datentypen
- CSS Funktion
- Funktionen
- Funktionsnotation
- Referenz
- Typen
- datentpen
translation_of: Web/CSS/CSS_Functions
---
<div>{{CSSRef}}</div>
<p>Die CSS-Funktionsnotation ist ein Typ von <a href="/de/docs/Web/CSS/CSS_Values_and_Units">CSS-Werten</a>, der komplexere Datentypen darstellen oder spezielle Datenverarbeitungen oder Berechnungen aufrufen kann.</p>
<h2 id="Syntax">Syntax</h2>
<pre class="syntaxbox notranslate">selector {
property: functional-notation( [argument]? [, argument]! );
}</pre>
<p>Die Syntax beginnt mit dem <strong>Namen der funktionalen Notation</strong>, gefolgt von einer linken Klammer <code>(</code>. Als Nächstes folgen das/die Notationsargument(e), und die Funktion wird mit einer schließenden Klammer <code>)</code> abgeschlossen.</p>
<p>Funktionen können mehrere Argumente annehmen, die ähnlich wie CSS-Eigenschaftswerte formatiert sind. Leerzeichen sind erlaubt, aber innerhalb der Klammern sind sie optional. In einigen Funktionsnotationen werden mehrere Argumente durch Kommas getrennt, während andere Leerzeichen verwenden.</p>
<h2 id="Index">Index</h2>
<p>Zu den funktionalen Notationen, die durch eine Reihe von CSS-Spezifikationen definiert sind, gehören die folgenden:</p>
<div class="index"><span>A</span>
<ul>
<li>{{CSSxRef("abs", "abs()")}} (math) {{Experimental_Inline}}</li>
<li>{{CSSxRef("acos", "acos()")}} (math) {{Experimental_Inline}}</li>
<li>{{CSSxRef("font-variant-alternates/annotation()", "annotation()")}} (font)</li>
<li>{{CSSxRef("asin", "asin()")}} (math) {{Experimental_Inline}}</li>
<li>{{CSSxRef("atan", "atan()")}} (math) {{Experimental_Inline}}</li>
<li>{{CSSxRef("atan2", "atan2()")}} (math) {{Experimental_Inline}}</li>
<li>{{CSSxRef("attr")}}</li>
</ul>
<span>B</span>
<ul>
<li>{{CSSxRef("filter-function/blur", "blur()")}} (filter)</li>
<li>{{CSSxRef("filter-function/brightness", "brightness()")}} (filter)</li>
</ul>
<span>C</span>
<ul>
<li>{{CSSxRef("calc")}} (math)</li>
<li>{{CSSxRef("font-variant-alternates/character-variant()", "character-variant()")}} (font)</li>
<li>{{CSSxRef("circle", "circle()")}} (shape)</li>
<li>{{CSSxRef("clamp")}} (math)</li>
<li>{{CSSxRef("color()")}} (colors) {{Experimental_Inline}}</li>
<li>{{CSSxRef("conic-gradient")}}</li>
<li>{{CSSxRef("cos", "cos()")}} (math) {{Experimental_Inline}}</li>
<li>{{CSSxRef("counter")}}</li>
<li>{{CSSxRef("counters")}}</li>
<li>{{CSSxRef("filter-function/contrast", "contrast()")}} (filter)</li>
<li>{{CSSxRef("cross-fade")}} {{Experimental_Inline}}</li>
<li>{{CSSxRef("cubic-bezier", "cubic-bezier()")}}</li>
</ul>
<span>D</span>
<ul>
<li>{{CSSxRef("device-cmyk", "device-cmyk()")}} (colors) {{Experimental_Inline}}</li>
<li>{{CSSxRef("filter-function/drop-shadow", "drop-shadow()")}} (filter)</li>
</ul>
<span>E</span>
<ul>
<li>{{CSSxRef("element")}} {{Experimental_Inline}}</li>
<li>{{CSSxRef("env")}} {{Experimental_Inline}}</li>
<li>{{CSSxRef("ellipse", "ellipse()")}} (shape)</li>
<li>{{CSSxRef("exp", "exp()")}} (math) {{Experimental_Inline}}</li>
</ul>
<span>F</span>
<ul>
<li>{{CSSxRef("fit-content()", "fit-content()")}}</li>
<li>{{CSSxRef("format", "format()")}}</li>
</ul>
<span>G</span>
<ul>
<li>{{CSSxRef("filter-function/grayscale", "grayscale()")}} (filter)</li>
</ul>
<span>H</span>
<ul>
<li>{{CSSxRef("hsl", "hsl()")}} (colors)</li>
<li>{{CSSxRef("hsla", "hsla()")}} (colors)</li>
<li>{{CSSxRef("filter-function/hue-rotate", "hue-rotate()")}} (filter)</li>
<li>{{CSSxRef("hwb", "hwb()")}} (colors) {{Experimental_Inline}}</li>
<li>{{CSSxRef("hypot", "hypot()")}} (math) {{Experimental_Inline}}</li>
</ul>
<span>I</span>
<ul>
<li>{{CSSxRef("imagefunction", "image()")}} {{Experimental_Inline}}</li>
<li>{{CSSxRef("image-set")}} {{Experimental_Inline}}</li>
<li>{{CSSxRef("inset()")}} (shape)</li>
<li>{{CSSxRef("filter-function/invert", "invert()")}} (filter)</li>
</ul>
<span>L</span>
<ul>
<li>{{CSSxRef("lab", "lab()")}} (colors) {{Experimental_Inline}}</li>
<li>{{CSSxRef("lch", "lch()")}} (colors) {{Experimental_Inline}}</li>
<li>{{CSSxRef("leader", "leader()")}}</li>
<li>{{CSSxRef("linear-gradient")}}</li>
<li>{{CSSxRef("local", "local()")}} {{Experimental_Inline}}</li>
<li>{{CSSxRef("log", "log()")}} (math) {{Experimental_Inline}}</li>
</ul>
<span>M</span>
<ul>
<li>{{CSSxRef("transform-function/matrix", "matrix()")}} (transform)</li>
<li>{{CSSxRef("transform-function/matrix3d", "matrix3d()")}} (transform)</li>
<li>{{CSSxRef("max")}} (math)</li>
<li>{{CSSxRef("min")}} (math)</li>
<li>{{CSSxRef("minmax")}} (math)</li>
<li>{{CSSxRef("mod", "mod()")}} (math) {{Experimental_Inline}}</li>
</ul>
<span>O</span>
<ul>
<li>{{CSSxRef("filter-function/opacity", "opacity()")}} (filter)</li>
<li>{{CSSxRef("font-variant-alternates/ornaments()", "ornaments()")}} (font)</li>
</ul>
<span>P</span>
<ul>
<li>{{CSSxRef("paint")}} {{Experimental_Inline}}</li>
<li>{{CSSxRef("path()", "path()")}} (shape)</li>
<li>{{CSSxRef("transform-function/perspective", "perspective()")}} (transform)</li>
<li>{{CSSxRef("polygon", "polygon()")}} (shape)</li>
<li>{{CSSxRef("pow", "pow()")}} (math) {{Experimental_Inline}}</li>
</ul>
<span>R</span>
<ul>
<li>{{CSSxRef("radial-gradient")}}</li>
<li>{{CSSxRef("rem", "rem()")}} (math) {{Experimental_Inline}}</li>
<li>{{CSSxRef("repeat")}}</li>
<li>{{CSSxRef("repeating-linear-gradient")}}</li>
<li>{{CSSxRef("repeating-radial-gradient")}}</li>
<li>{{CSSxRef("repeating-conic-gradient")}}</li>
<li>rgb() (colors)</li>
<li>rgba() (colors)</li>
<li>{{CSSxRef("transform-function/rotate", "rotate()")}} (transform)</li>
<li>{{CSSxRef("transform-function/rotate3d", "rotate3d()")}} (transform)</li>
<li>{{CSSxRef("transform-function/rotateX", "rotateX()")}} (transform)</li>
<li>{{CSSxRef("transform-function/rotateY", "rotateY()")}} (transform)</li>
<li>{{CSSxRef("transform-function/rotateZ", "rotateZ()")}} (transform)</li>
<li>{{CSSxRef("round", "round()")}} (math) {{Experimental_Inline}}</li>
</ul>
<span>S</span>
<ul>
<li>{{CSSxRef("filter-function/saturate", "saturate()")}} (filter)</li>
<li>{{CSSxRef("transform-function/scale", "scale()")}} (transform)</li>
<li>{{CSSxRef("transform-function/scale3d", "scale3d()")}} (transform)</li>
<li>{{CSSxRef("transform-function/scaleX", "scaleX()")}} (transform)</li>
<li>{{CSSxRef("transform-function/scaleY", "scaleY()")}} (transform)</li>
<li>{{CSSxRef("transform-function/scaleZ", "scaleZ()")}} (transform)</li>
<li>{{CSSxRef("filter-function/sepia", "sepia()")}} (filter)</li>
<li>{{CSSxRef("sign", "sign()")}} (math) {{Experimental_Inline}}</li>
<li>{{CSSxRef("sin", "sin()")}} (math) {{Experimental_Inline}}</li>
<li>{{CSSxRef("transform-function/skew", "skew()")}} (transform)</li>
<li>{{CSSxRef("transform-function/skewX", "skewX()")}} (transform)</li>
<li>{{CSSxRef("transform-function/skewY", "skewY()")}} (transform)</li>
<li>{{CSSxRef("sqrt", "sqrt()")}} (math) {{Experimental_Inline}}</li>
<li>{{CSSxRef("steps", "steps()")}}</li>
<li>{{CSSxRef("font-variant-alternates/styleset()", "styleset()")}} (font)</li>
<li>{{CSSxRef("font-variant-alternates/stylistic()", "stylistic()")}} (font)</li>
<li>{{CSSxRef("font-variant-alternates/swash()", "swash()")}} (font)</li>
<li>{{CSSxRef("symbols", "symbols()")}}</li>
</ul>
<span>T</span>
<ul>
<li>{{CSSxRef("tan", "tan()")}} (math) {{Experimental_Inline}}</li>
<li>{{CSSxRef("target-counter", "target-counter()")}} {{Experimental_Inline}}</li>
<li>{{CSSxRef("target-counters", "target-counters()")}} {{Experimental_Inline}}</li>
<li>{{CSSxRef("target-text", "target-text()")}} {{Experimental_Inline}}</li>
<li>{{CSSxRef("toggle", "toggle()")}} {{Experimental_Inline}}</li>
<li>{{CSSxRef("transform-function/translate", "translate()")}} (transform)</li>
<li>{{CSSxRef("transform-function/translate3d", "translate3d()")}} (transform)</li>
<li>{{CSSxRef("transform-function/translateX", "translateX()")}} (transform)</li>
<li>{{CSSxRef("transform-function/translateY", "translateY()")}} (transform)</li>
<li>{{CSSxRef("transform-function/translateZ", "translateZ()")}} (transform)</li>
</ul>
<span>U</span>
<ul>
<li>{{CSSxRef("url()", "url()")}}</li>
</ul>
<span>V</span>
<ul>
<li>{{CSSxRef("var")}}</li>
</ul>
</div>
<h2 id="Spezifikationen">Spezifikationen</h2>
<table class="standard-table">
<thead>
<tr>
<th scope="col">Specification</th>
<th scope="col">Status</th>
<th scope="col">Comment</th>
</tr>
</thead>
<tbody>
<tr>
<td>{{SpecName("CSS4 Values")}}</td>
<td>{{Spec2("CSS4 Values")}}</td>
<td>Hinzugefügte Funktionsnotation <code>toggle()</code>, <code>attr()</code>, <code>calc()</code>, <code>min()</code>, <code>max()</code>, <code>clamp()</code>, <code>round()</code>, <code>mod()</code>, <code>rem()</code>, <code>mod()</code>, <code>sin()</code>, <code>cos()</code>, <code>tan()</code>, <code>asin()</code>, <code>acos()</code>, <code>atan()</code>, <code>atan2()</code>, <code>pow()</code>, <code>sqrt()</code>, <code>hypot()</code>, <code>log()</code>, <code>exp()</code>, <code>abs()</code> und <code>sign()</code>.</td>
</tr>
<tr>
<td>{{SpecName("CSS3 Values")}}</td>
<td>{{Spec2("CSS3 Values")}}</td>
<td>Fügt die Funktionsnotation <code>calc()</code> zu.</td>
</tr>
<tr>
<td>{{SpecName("CSS4 Colors")}}</td>
<td>{{Spec2("CSS4 Colors")}}</td>
<td>Fügt kommmalose Syntaxen für die funktionale Notation <code>rgb()</code>, <code>rgba()</code>, <code>hsl()</code>, und <code>hsla()</code> hinzu.<br>
Erlaubt Alpha-Werte in <code>rgb()</code> und <code>hsl()</code>, und macht <code>rgba()</code> und <code>hsla()</code> into (deprecated) zu (veralteten) Aliasen für diese.<br>
Fügt die Funktionen <code>hwb()</code>, <code>device-cmyk()</code> und <code>color()</code> hinzu.</td>
</tr>
<tr>
<td>{{SpecName("CSS3 Colors")}}</td>
<td>{{Spec2("CSS3 Colors")}}</td>
<td>Fügt <code>rgba()</code>, <code>hsl()</code>, <code>hsla()</code> als funktionale Notation hinzu.</td>
</tr>
<tr>
<td>{{SpecName("CSS4 Images")}}</td>
<td>{{Spec2("CSS4 Images")}}</td>
<td>Fügt <code>element()</code>, <code>image()</code>, <code>image-set()</code> und <code>conic-gradient()</code> als Funktionsnotation hinzu.</td>
</tr>
</tbody>
</table>
<h2 id="Siehe_auch">Siehe auch</h2>
<ul>
<li><a href="/en-US/docs/Web/CSS/CSS_Values_and_Units">CSS Werte und Einheiten</a></li>
<li><a href="/de/docs/Learn/CSS/Building_blocks/Werten_Einheiten">Einführung zu CSS: Werte und Einheiten</a></li>
</ul>
|