blob: 6c6f7261444be77ef89d3228a5e1a5f96df96e75 (
plain)
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
|
---
title: <angle-percentage>
slug: Web/CSS/angle-percentage
tags:
- CSS
- CSS Datentyp
- Einheiten
- Werte
- angle-percentage
translation_of: Web/CSS/angle-percentage
---
<div>{{CSSRef}}</div>
<p>Der <strong><code><angle-percentage></code></strong> <a href="/de/docs/Web/CSS">CSS</a>-<a href="/de/docs/Web/CSS/CSS_Types">Datentyp</a> stellt einen Wert dar, der entweder {{Cssxref("angle")}} oder ein {{Cssxref("percentage")}} sein kann.</p>
<h2 id="Syntax">Syntax</h2>
<p>Für <code><angle-percentage></code>-Werte sind alle Werte syntaktisch gültig, die auch bei {{Cssxref("angle")}} oder {{Cssxref("percentage")}} syntaktisch gültig sind.</p>
<h2 id="Verwendung_mit_calc">Verwendung mit calc()</h2>
<p>Wenn <code><angle-percentage></code> ein zulässiger Typ ist, dann wird aus einem Prozentwert ein einfacher {{Cssxref("angle")}} errechnet. Daher kann <code><angle-percentage></code> in einem {{Cssxref("calc()")}}-Ausdruck verwendet werden.</p>
<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', '#mixed-percentages', '<angle-percentage>')}}</td>
<td>{{Spec2('CSS4 Values')}}</td>
<td></td>
</tr>
<tr>
<td>{{SpecName('CSS3 Values', '#mixed-percentages', '<angle-percentage>')}}</td>
<td>{{Spec2('CSS3 Values')}}</td>
<td>Definiert <code><angle-percentage></code>. <code>calc()</code> hinzugefügt.</td>
</tr>
</tbody>
</table>
<h2 id="Browser-Kompatibilität">Browser-Kompatibilität</h2>
<p>{{Compat("css.types.angle-percentage")}}</p>
|