blob: e9c8b29c444c259ef883d496b60c6acae1e8a686 (
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
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
|
---
title: '-moz-binding'
slug: Web/CSS/-moz-binding
translation_of: Archive/Web/CSS/-moz-binding
---
<div>{{CSSRef}}{{Non-standard_Header}}{{Deprecated_Header(57)}}</div>
<p>The <strong><code>-moz-binding</code></strong> CSS property is used by Mozilla-based applications to attach an <a href="/en-US/docs/XBL">XBL</a> binding to a DOM element.</p>
<p>{{CSSInfo}}</p>
<h2 id="Syntax">Syntax</h2>
<pre class="brush:css">/* <url> value */
-moz-binding: url(http://www.example.org/xbl/htmlBindings.xml#checkbox);
/* Global values */
-moz-binding: inherited;
-moz-binding: initial;
-moz-binding: unset;
</pre>
<h3 id="Values">Values</h3>
<dl>
<dt>{{CSSxRef("<url>")}}</dt>
<dd>The URL for the XBL binding (including the fragment identifier).</dd>
<dt><code>none</code></dt>
<dd>No XBL binding is applied to the element.</dd>
</dl>
<h3 id="Formal_syntax">Formal syntax</h3>
<pre class="syntaxbox">{{CSSSyntax}}</pre>
<h2 id="Example">Example</h2>
<pre class="brush: css">.exampleone {
-moz-binding: url(http://www.example.org/xbl/htmlBindings.xml#radiobutton);
}</pre>
<h2 id="Specifications">Specifications</h2>
<p>Not part of any specification.</p>
<h2 id="Browser_compatibility">Browser compatibility</h2>
<div class="bc-old">
<p>{{CompatibilityTable}}</p>
<div id="compat-desktop">
<table class="compat-table">
<thead>
<tr>
<th>Feature</th>
<th>Chrome</th>
<th>Edge</th>
<th>Firefox</th>
<th>IE</th>
<th>Opera</th>
<th>Safari</th>
</tr>
</thead>
<tbody>
<tr>
<td>Basic support {{Deprecated_Inline}}</td>
<td>{{CompatNo}}</td>
<td>{{CompatNo}}</td>
<td>{{CompatVersionUnknown}} <sup><a href="compatNote_1">[1]</a></sup></td>
<td>{{CompatNo}}</td>
<td>{{CompatNo}}</td>
<td>{{CompatNo}}</td>
</tr>
</tbody>
</table>
</div>
<div id="compat-mobile">
<table class="compat-table">
<thead>
<tr>
<th>Feature</th>
<th>WebView Android</th>
<th>Chrome Android</th>
<th>Edge Mobile</th>
<th>Firefox Android</th>
<th>Opera Android</th>
<th>Safari iOS</th>
<th>Samsung Internet Android</th>
</tr>
</thead>
<tbody>
<tr>
<td>Basic support {{Deprecated_Inline}}</td>
<td>{{CompatNo}}</td>
<td>{{CompatNo}}</td>
<td>{{CompatNo}}</td>
<td>{{CompatUnknown}} <sup><a href="compatNote_1">[1]</a></sup></td>
<td>{{CompatNo}}</td>
<td>{{CompatNo}}</td>
<td>{{CompatNo}}</td>
</tr>
</tbody>
</table>
</div>
<p id="compatNote_1">1. XBL is deprecated and being removed (See {{bug(1397874)}}).</p>
</div>
<h2 id="See_also">See also</h2>
<ul>
<li><a href="/en-US/docs/XBL/XBL_1.0_Reference/Binding_Attachment_and_Detachment">XBL Reference: Binding Attachment and Detachment</a></li>
<li><a href="/en-US/docs/Mozilla/Tech/XUL/Tutorial/Introduction_to_XBL">XUL Tutorial: Introduction to XBL</a></li>
</ul>
|