]> source.dussan.org Git - jquery.git/commitdiff
Docs: Add support comments for prefixed box-sizing
authorMichał Gołębiowski <m.goleb@gmail.com>
Wed, 5 Feb 2014 14:59:38 +0000 (15:59 +0100)
committerMichał Gołębiowski <m.goleb@gmail.com>
Wed, 5 Feb 2014 14:59:38 +0000 (15:59 +0100)
src/css/support.js
src/effects/support.js
test/unit/css.js
test/unit/dimensions.js

index 0be4f63920ed1c351f826d08cdf7af9756529a27..da9ee34f113941598c073a5217f8047cca8a948a 100644 (file)
@@ -8,6 +8,7 @@ define([
                pixelPositionVal,
                div = document.createElement( "div" ),
                containerStyles = "border:0;width:0;height:0;position:absolute;top:0;left:-9999px",
+               // Support: Firefox<29, Android 2.3 (Prefixed box-sizing versions).
                divReset =
                        "-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;" +
                        "display:block;padding:0;margin:0;border:0";
@@ -162,6 +163,7 @@ define([
 
                body.appendChild( container ).appendChild( div );
 
+               // Support: Firefox<29, Android 2.3 (Prefixed box-sizing versions).
                div.style.cssText =
                        "-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;" +
                                "position:absolute;display:block;padding:1px;border:1px;width:4px;" +
index 2391bcbffa4c63bc20fa006a2d25dce960490d0b..85b77c9ccadb5499b6451fd4fc366046a07ddc3a 100644 (file)
@@ -6,6 +6,7 @@ define([
 (function() {
        var a, shrinkWrapBlocksVal,
                div = document.createElement( "div" ),
+               // Support: Firefox<29, Android 2.3 (Prefixed box-sizing versions).
                divReset =
                        "-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;" +
                        "display:block;padding:0;margin:0;border:0";
index 0822fc68b10b6c51173ad37147a2cb8c5beab2e5..f401ec7e3e403973bd430db1c0e3c3fe8e8e5857 100644 (file)
@@ -847,6 +847,7 @@ test("Do not append px (#9548, #12990)", function() {
 test("css('width') and css('height') should respect box-sizing, see #11004", function() {
        expect( 4 );
 
+       // Support: Firefox<29, Android 2.3 (Prefixed box-sizing versions).
        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>"),
                el = el_dis.clone().appendTo("#qunit-fixture");
 
index c6165b0f9051d7d80f41a954f545f4af19dd26f4..97e23d7e20170ab1b6978c86f2af7ca3bca935b9 100644 (file)
@@ -418,6 +418,7 @@ test( "getters on non elements should return null", function() {
 test("setters with and without box-sizing:border-box", function(){
        expect(20);
 
+       // Support: Firefox<29, Android 2.3 (Prefixed box-sizing versions).
        var el_bb = jQuery("<div style='width:114px;height:114px;margin:5px;padding:3px;border:4px solid white;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;'>test</div>").appendTo("#qunit-fixture"),
                el = jQuery("<div style='width:100px;height:100px;margin:5px;padding:3px;border:4px solid white;'>test</div>").appendTo("#qunit-fixture"),
                expected = 100;