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
|
---
title: ':indeterminate'
slug: 'Web/CSS/:indeterminate'
tags:
- CSS
- CSS Pseudoklasse
- Layout
- Referenz
- Selektoren
- Web
translation_of: 'Web/CSS/:indeterminate'
---
<div>{{CSSRef}}</div>
<h2 id="Übersicht">Übersicht</h2>
<p>Die <code>:indeterminate</code> <a href="/de/docs/Web/CSS">CSS</a> <a href="/de/docs/Web/CSS/Pseudo-classes">Pseudoklasse</a> repräsentiert alle <code><input type="checkbox"></code> Elements, deren <code>indeterminate</code> <a href="/de/docs/Web/API">DOM</a> Eigenschaft durch JavaScript auf <code>true</code> gesetzt wurde. Darüber hinaus wird sie in manchen Browsern dazu verwendet, {{HTMLElement("progress")}} Elemente in einem Zwischenstatus zu finden.</p>
<h2 id="Beispiel">Beispiel</h2>
<pre class="brush: css">input, span {
background: red;
}
:indeterminate, :indeterminate + span {
background: limegreen;
}
</pre>
<pre class="brush: html"><input type="checkbox"> <span>Der Inhalt dieses Absatzes hat eine grüne Hintergrundfarbe.</span>
</pre>
<pre class="brush: js">document.getElementsByTagName("input")[0].indeterminate = true;
</pre>
<p>{{EmbedLiveSample('Beispiel', '100%', 50)}}</p>
<h2 id="Spezifikationen">Spezifikationen</h2>
<table class="standard-table">
<thead>
<tr>
<th scope="col">Spezifikation</th>
<th scope="col">Status</th>
<th scope="col">Anmerkung</th>
</tr>
</thead>
<tbody>
<tr>
<td>{{SpecName('HTML WHATWG', '#selector-indeterminate', ':indeterminate')}}</td>
<td>{{Spec2('HTML WHATWG')}}</td>
<td>Keine Änderung</td>
</tr>
<tr>
<td>{{SpecName('HTML5 W3C', '#selector-indeterminate', ':indeterminate')}}</td>
<td>{{Spec2('HTML5 W3C')}}</td>
<td>Definiert die Semantik bezüglich HTML und Begrenzungsvalidierung.</td>
</tr>
<tr>
<td>{{SpecName('CSS4 Selectors', '#indeterminate', ':indeterminate')}}</td>
<td>{{Spec2('CSS4 Selectors')}}</td>
<td>Keine Änderung</td>
</tr>
<tr>
<td>{{SpecName('CSS3 UI', '#indeterminate', ':indeterminate')}}</td>
<td>{{Spec2('CSS3 UI')}}</td>
<td>Definiert die Pseudoklasse, aber nicht die dazugehörige Semantik.</td>
</tr>
</tbody>
</table>
<h2 id="Browser_Kompatibilität">Browser Kompatibilität</h2>
{{Compat("css.selectors.indeterminate")}}
|