aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/css.js
diff options
context:
space:
mode:
authorMichał Gołębiowski <m.goleb@gmail.com>2013-04-04 22:04:39 +0200
committerDave Methvin <dave.methvin@gmail.com>2013-04-06 17:09:52 -0400
commitdca7681284731053124e6437c5bec58e030cc91d (patch)
tree6646d538c7866f9336f2ac11a6e181b616a5632f /test/unit/css.js
parent1b610266502490eab42a0b9ddfac2f93da0b0fe1 (diff)
downloadjquery-dca7681284731053124e6437c5bec58e030cc91d.tar.gz
jquery-dca7681284731053124e6437c5bec58e030cc91d.zip
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
Diffstat (limited to 'test/unit/css.js')
-rw-r--r--test/unit/css.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/unit/css.js b/test/unit/css.js
index dc851f745..8a2ecfb60 100644
--- a/test/unit/css.js
+++ b/test/unit/css.js
@@ -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");