|
1 | 1 | <?xml version="1.0"?> |
2 | | -<entry type="property" name="jQuery.cssNumber" return="Object"> |
| 2 | +<entry type="property" name="jQuery.cssNumber" return="Object" removed="4.0"> |
3 | 3 | <title>jQuery.cssNumber</title> |
4 | 4 | <signature> |
5 | 5 | <added>1.4.3</added> |
6 | 6 | </signature> |
7 | | - <desc>An object containing all CSS properties that may be used without a unit. The <a href="/css/"><code>.css()</code></a> method uses this object to see if it may append <code>px</code> to unitless values.</desc> |
| 7 | + <desc>An object containing all CSS properties that may be used without a unit. Prior to jQuery 4.0, the <a href="/css/"><code>.css()</code></a> method uses this object to see if it may append <code>px</code> to unitless values.</desc> |
8 | 8 | <longdesc> |
9 | | - <p>You can think about <code>jQuery.cssNumber</code> as a list of all CSS properties you might use without a unit. It's used by <a href="/css/"><code>.css()</code></a> to determine if it needs to add <code>px</code> to unitless values.</p> |
10 | | - <p>The keys of the <code>jQuery.cssNumber</code> object are camel-cased and the values are all set to <code>true</code>. If you want to prevent the <a href="/css/"><code>.css()</code></a> method from automatically adding the <code>px</code> unit for a specific CSS property, you can add an extra property to the <code>jQuery.cssNumber</code> object.</p> |
| 9 | + <p>You can think about <code>jQuery.cssNumber</code> as a list of all CSS properties you might use without a unit. Prior to jQuery 4.0, it was used by <a href="/css/"><code>.css()</code></a> to determine if it needs to add <code>px</code> to unitless values.</p> |
| 10 | + <p>The keys of the <code>jQuery.cssNumber</code> object are camel-cased and the values are all set to <code>true</code>. If you want to prevent the <a href="/css/"><code>.css()</code></a> method from automatically adding the <code>px</code> unit for a specific CSS property and that property is not yet a key of the <code>jQuery.cssNumber</code> object, you can add such an extra property:</p> |
11 | 11 | <pre><code> |
12 | 12 | jQuery.cssNumber.someCSSProp = true; |
13 | 13 | </code></pre> |
14 | | - <p>By default the object contains the following properties:</p> |
15 | | - <ul> |
16 | | - <li><code>zIndex</code></li> |
17 | | - <li><code>fontWeight</code></li> |
18 | | - <li><code>opacity</code></li> |
19 | | - <li><code>zoom</code></li> |
20 | | - <li><code>lineHeight</code></li> |
21 | | - <li><code>widows</code> (added in jQuery 1.6)</li> |
22 | | - <li><code>orphans</code> (added in jQuery 1.6)</li> |
23 | | - <li><code>fillOpacity</code> (added in jQuery 1.6.2)</li> |
24 | | - <li><code>columnCount</code> (added in jQuery 1.9)</li> |
25 | | - <li><code>order</code> (added in jQuery 1.10.2)</li> |
26 | | - <li><code>flexGrow</code> (added in jQuery 1.11.1)</li> |
27 | | - <li><code>flexShrink</code> (added in jQuery 1.11.1)</li> |
28 | | - </ul> |
29 | 14 | </longdesc> |
30 | 15 | <category slug="css"/> |
31 | 16 | <category slug="manipulation/style-properties"/> |
|
0 commit comments