mirror of
https://github.com/jquery/jquery.git
synced 2026-04-20 03:01:22 -04:00
Improve CSS and Support: comments. Close gh-1220.
1) corrected box-sizing rules order - the unprefixed value should always be the last one 2) removed last semi-colons in CSS rules 3) updated support comments code review changes + more consistent comment spacing
This commit is contained in:
committed by
Dave Methvin
parent
1b61026650
commit
dca7681284
@@ -775,7 +775,8 @@ test("Do not append px (#9548, #12990)", function() {
|
||||
test("css('width') and css('height') should respect box-sizing, see #11004", function() {
|
||||
expect( 4 );
|
||||
|
||||
var el_dis = jQuery("<div style='width:300px;height:300px;margin:2px;padding:2px;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;'>test</div>"),
|
||||
// Support: Firefox, Android 2.3 (Prefixed box-sizing versions).
|
||||
var el_dis = jQuery("<div style='width:300px;height:300px;margin:2px;padding:2px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;'>test</div>"),
|
||||
el = el_dis.clone().appendTo("#qunit-fixture");
|
||||
|
||||
equal( el.css("width"), el.css("width", el.css("width")).css("width"), "css('width') is not respecting box-sizing, see #11004");
|
||||
|
||||
Reference in New Issue
Block a user