Skip to content

Commit 64a4657

Browse files
committed
jQuery.cssNumber: Document the removal in 4.0
1 parent afba802 commit 64a4657

File tree

1 file changed

+4
-19
lines changed

1 file changed

+4
-19
lines changed

entries/jQuery.cssNumber.xml

Lines changed: 4 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,16 @@
11
<?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">
33
<title>jQuery.cssNumber</title>
44
<signature>
55
<added>1.4.3</added>
66
</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>
88
<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>
1111
<pre><code>
1212
jQuery.cssNumber.someCSSProp = true;
1313
</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>
2914
</longdesc>
3015
<category slug="css"/>
3116
<category slug="manipulation/style-properties"/>

0 commit comments

Comments
 (0)