mirror of
https://github.com/jquery/jquery.git
synced 2026-02-02 01:25:10 -05:00
Fix #14394: Changing style !important in webkit. Close gh-1385.
(cherry picked from commit 24e587929f)
Conflicts:
src/css.js
This commit is contained in:
@@ -970,6 +970,12 @@ test( ":visible/:hidden selectors", function() {
|
||||
t( "Is Hidden", "#form input:hidden", ["hidden1","hidden2"] );
|
||||
});
|
||||
|
||||
test( "Override !important when changing styles (#14394)", function() {
|
||||
expect( 1 );
|
||||
var el = jQuery( "<div style='display: block !important;'></div>" ).css( "display", "none" );
|
||||
equal( el.css( "display" ), "none", "New style replaced !important" );
|
||||
});
|
||||
|
||||
asyncTest( "Clearing a Cloned Element's Style Shouldn't Clear the Original Element's Style (#8908)", 24, function() {
|
||||
var baseUrl = document.location.href.replace( /([^\/]*)$/, "" ),
|
||||
styles = [{
|
||||
|
||||
Reference in New Issue
Block a user