aboutsummaryrefslogtreecommitdiff
path: root/files/ja/archive/web/css/_colon_-moz-system-metric/windows-default-theme/index.html
blob: ca0cdc081ccec287a7fa932fc80046cf3295da07 (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
---
title: ':-moz-system-metric(windows-default-theme)'
slug: 'Archive/Web/CSS/:-moz-system-metric/windows-default-theme'
tags:
  - CSS
  - Mozilla 拡張
  - Non-standard
  - Reference
  - 疑似クラス
translation_of: 'Archive/Web/CSS/:-moz-system-metric/windows-default-theme'
---
<div>{{Non-standard_header}}{{CSSRef}}</div>

<p>CSS の <strong><code>:-moz-system-metric(windows-default-theme)</code></strong> <a href="/ja/docs/Web/CSS/Pseudo-classes">疑似クラス</a> は、 Windows においてユーザーが Luna, Royale, Zune, Aero (言い換えると、Vista Basic, Vista Standard, Aero Glass) のうちいずれかのテーマを現在使用している時に、要素に一致します。この指定は、サードパーティ製のテーマと同様に Windows Classic テーマも除外します。</p>

<p>このセレクタは主にテーマ開発者によって利用されることを想定しています。</p>

<div class="note">
<p><strong>メモ</strong>: <a href="/ja/docs/Mozilla/Firefox/Releases/58">Firefox 58</a> 以降、このメディア特性はウェブコンテンツでは利用できなくなりました。内部 (例えば to XUL / chrome code) でのみ利用できます。詳しくは {{bug(1396066)}} をご覧ください。</p>
</div>

<h2 id="例"></h2>

<h3 id="HTML_Content">HTML Content</h3>

<pre class="brush: html notranslate">&lt;p id="defaultThemes"&gt;
  This paragraph should have a green background with Luna/Royale/Zune/Aero
  Windows themes and red with other themes.
&lt;/p&gt;

&lt;p id="nonDefaultThemes"&gt;
  This paragraph should have a green background with Windows Classic or
  third-party themes and red with other themes.
&lt;/p&gt;

&lt;p id="notSupported"&gt;Theme detection is not supported.&lt;/p&gt;</pre>

<h3 id="CSS_Content">CSS Content</h3>

<pre class="brush: css notranslate">#defaultThemes,
#nonDefaultThemes {
  background-color: #FFA0A0;
}

#defaultThemes:-moz-system-metric(windows-default-theme) {
  background-color: #A0FFA0;
}

#nonDefaultThemes:not(-moz-system-metric(windows-default-theme)) {
  background-color: #A0FFA0;
}

#notSupported:-moz-system-metric(windows-default-theme),
#notSupported:not(:-moz-system-metric(windows-default-theme)) {
  display: none;
}
</pre>

<p>{{EmbedLiveSample("Example", "100%", 170)}}</p>

<h2 id="仕様書">仕様書</h2>

<p>どの仕様書でも定義されていません。</p>

<p> </p>

<h2 id="Browser_compatibility" name="Browser_compatibility">ブラウザーの対応</h2>

<p class="hidden">このページの互換性一覧表は構造化データから生成されています。データに協力したいのであれば、 <a href="https://github.com/mdn/browser-compat-data">https://github.com/mdn/browser-compat-data</a> をチェックアウトしてプルリクエストを送信してください。</p>

<p>{{Compat("css.selectors.-moz-system-metric.windows-default-theme")}}</p>