You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: entries/jQuery.cssNumber.xml
+3
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,9 @@
6
6
</signature>
7
7
<desc>An object containing all CSS properties that may be used without a unit. Prior to jQuery 4.0, the <ahref="/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
+
<divclass="warning">
10
+
<p>Note: This API has been removed in jQuery 4.0; please pass a string value with the desired units instead.</p>
11
+
</div>
9
12
<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 <ahref="/css/"><code>.css()</code></a> to determine if it needs to add <code>px</code> to unitless values.</p>
10
13
<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 <ahref="/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>
0 commit comments