fixup! CSS: Drop the cache in finalPropName

This commit is contained in:
Michał Gołębiowski-Owczarek 2024-11-21 18:17:54 +01:00
parent 0aedc9d59f
commit e2e0538404
No known key found for this signature in database

View File

@ -1705,7 +1705,7 @@ QUnit.test( "Do not throw on frame elements from css method (trac-15098)", funct
( function() { ( function() {
var vendorPrefixes = [ "Webkit", "Moz", "ms" ]; var vendorPrefixes = [ "Webkit", "Moz", "ms" ];
QUnit.test( "Don't default to a cached previously used wrong prefixed name (gh-2015)", function( assert ) { QUnit.test( "Don't default to a previously used wrong prefixed name (gh-2015)", function( assert ) {
// Note: this test needs a property we know is only supported in a prefixed version // Note: this test needs a property we know is only supported in a prefixed version
// by at least one of our main supported browsers. This may get out of date so let's // by at least one of our main supported browsers. This may get out of date so let's
@ -1761,7 +1761,7 @@ QUnit.test( "Do not throw on frame elements from css method (trac-15098)", funct
} )(); } )();
QUnit.test( "Don't detect fake set properties on a node when caching the prefixed version", function( assert ) { QUnit.test( "Don't update existing unsupported prefixed properties", function( assert ) {
assert.expect( 1 ); assert.expect( 1 );
var elem = jQuery( "<div></div>" ), var elem = jQuery( "<div></div>" ),
@ -1769,7 +1769,7 @@ QUnit.test( "Don't detect fake set properties on a node when caching the prefixe
style.MozFakeProperty = "old value"; style.MozFakeProperty = "old value";
elem.css( "fakeProperty", "new value" ); elem.css( "fakeProperty", "new value" );
assert.equal( style.MozFakeProperty, "old value", "Fake prefixed property is not cached" ); assert.equal( style.MozFakeProperty, "old value", "Fake prefixed property is not set" );
} ); } );
QUnit.test( "Don't set fake prefixed properties when a regular one is missing", function( assert ) { QUnit.test( "Don't set fake prefixed properties when a regular one is missing", function( assert ) {