Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit865469f

Browse files
authored
CSS: Remove the opacity CSS hook
The consequence is `.css( "opacity" )` will now return an empty string fordetached elements in standard-compliant browsers and "1" in IE & the legacyEdge. That behavior is shared by most other CSS properties which we're notnormalizing either.Closesgh-4593
1 parent89a18de commit865469f

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

‎src/css.js

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -185,18 +185,7 @@ jQuery.extend( {
185185

186186
// Add in style property hooks for overriding the default
187187
// behavior of getting and setting a style property
188-
cssHooks:{
189-
opacity:{
190-
get:function(elem,computed){
191-
if(computed){
192-
193-
// We should always get a number back from opacity
194-
varret=curCSS(elem,"opacity");
195-
returnret==="" ?"1" :ret;
196-
}
197-
}
198-
}
199-
},
188+
cssHooks:{},
200189

201190
// Get and set the style property on a DOM Node
202191
style:function(elem,name,value,extra){

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp