blob: 625d3fffeaac7755510f1c8a2a37a53fad17934a (
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
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
|
---
title: CSS Conditional Rules
slug: Web/CSS/CSS_Conditional_Rules
tags:
- CSS
- CSS Conditional Rules
- Guide
- NeedsTranslation
- Overview
- Reference
- TopicStub
translation_of: Web/CSS/CSS_Conditional_Rules
---
<div>{{CSSRef}}</div>
<p><strong>CSS Conditional Rules</strong> is a CSS module that allows to define a set of rules that will only apply based on the capabilities of the processor or the document the style sheet is being applied to.</p>
<h2 id="Reference">Reference</h2>
<h3 id="At-rules">At-rules</h3>
<div class="index">
<ul>
<li>{{cssxref("@document")}}</li>
<li>{{cssxref("@media")}}</li>
<li>{{cssxref("@supports")}}</li>
<li>{{cssxref("@import")}}</li>
</ul>
</div>
<h2 id="Specifications">Specifications</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('CSS3 Conditional')}}</td>
<td>{{Spec2('CSS3 Conditional')}}</td>
<td>Initial definition</td>
</tr>
</tbody>
</table>
<h2 id="Browser_compatibility">Browser compatibility</h2>
<h3 id="document_rule"><code>@document</code> rule</h3>
<div>
<p>{{Compat("css.at-rules.document")}}</p>
<h3 id="import_rule"><code>@import</code> rule</h3>
<div>
<p>{{Compat("css.at-rules.import")}}</p>
</div>
<h3 id="media_rule"><code>@media</code> rule</h3>
<div>
<p>{{Compat("css.at-rules.media")}}</p>
<h3 id="supports_rule"><code>@supports</code> rule</h3>
<div>
<p>{{Compat("css.at-rules.supports")}}</p>
</div>
</div>
</div>
|