Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
jquery
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
夏彬
jquery
Commits
79f59c21
Commit
79f59c21
authored
Feb 05, 2014
by
Michał Gołębiowski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Support: Document box-sizing was unprefixed in Firefox 29
parent
0fcb0f68
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
support.js
src/css/support.js
+2
-2
css.js
test/unit/css.js
+1
-1
dimensions.js
test/unit/dimensions.js
+1
-1
No files found.
src/css/support.js
View file @
79f59c21
...
@@ -5,7 +5,7 @@ define([
...
@@ -5,7 +5,7 @@ define([
(
function
()
{
(
function
()
{
var
pixelPositionVal
,
boxSizingReliableVal
,
var
pixelPositionVal
,
boxSizingReliableVal
,
// Support: Firefox, Android 2.3 (Prefixed box-sizing versions).
// Support: Firefox
<29
, Android 2.3 (Prefixed box-sizing versions).
divReset
=
"padding:0;margin:0;border:0;display:block;-webkit-box-sizing:content-box;"
+
divReset
=
"padding:0;margin:0;border:0;display:block;-webkit-box-sizing:content-box;"
+
"-moz-box-sizing:content-box;box-sizing:content-box"
,
"-moz-box-sizing:content-box;box-sizing:content-box"
,
docElem
=
document
.
documentElement
,
docElem
=
document
.
documentElement
,
...
@@ -23,7 +23,7 @@ define([
...
@@ -23,7 +23,7 @@ define([
// Executing both pixelPosition & boxSizingReliable tests require only one layout
// Executing both pixelPosition & boxSizingReliable tests require only one layout
// so they're executed at the same time to save the second computation.
// so they're executed at the same time to save the second computation.
function
computePixelPositionAndBoxSizingReliable
()
{
function
computePixelPositionAndBoxSizingReliable
()
{
// Support: Firefox, Android 2.3 (Prefixed box-sizing versions).
// Support: Firefox
<29
, Android 2.3 (Prefixed box-sizing versions).
div
.
style
.
cssText
=
"-webkit-box-sizing:border-box;-moz-box-sizing:border-box;"
+
div
.
style
.
cssText
=
"-webkit-box-sizing:border-box;-moz-box-sizing:border-box;"
+
"box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;"
+
"box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;"
+
"position:absolute;top:1%"
;
"position:absolute;top:1%"
;
...
...
test/unit/css.js
View file @
79f59c21
...
@@ -789,7 +789,7 @@ test("Do not append px (#9548, #12990)", function() {
...
@@ -789,7 +789,7 @@ test("Do not append px (#9548, #12990)", function() {
test
(
"css('width') and css('height') should respect box-sizing, see #11004"
,
function
()
{
test
(
"css('width') and css('height') should respect box-sizing, see #11004"
,
function
()
{
expect
(
4
);
expect
(
4
);
// Support: Firefox, Android 2.3 (Prefixed box-sizing versions).
// Support: Firefox
<29
, 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>"
),
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"
);
el
=
el_dis
.
clone
().
appendTo
(
"#qunit-fixture"
);
...
...
test/unit/dimensions.js
View file @
79f59c21
...
@@ -418,7 +418,7 @@ test( "getters on non elements should return null", function() {
...
@@ -418,7 +418,7 @@ test( "getters on non elements should return null", function() {
test
(
"setters with and without box-sizing:border-box"
,
function
(){
test
(
"setters with and without box-sizing:border-box"
,
function
(){
expect
(
20
);
expect
(
20
);
// Support: Firefox, Android 2.3 (Prefixed box-sizing versions).
// 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;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;'>test</div>"
).
appendTo
(
"#qunit-fixture"
),
var
el_bb
=
jQuery
(
"<div style='width:114px;height:114px;margin:5px;padding:3px;border:4px solid white;-webkit-box-sizing:border-box;-moz-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"
),
el
=
jQuery
(
"<div style='width:100px;height:100px;margin:5px;padding:3px;border:4px solid white;'>test</div>"
).
appendTo
(
"#qunit-fixture"
),
expected
=
100
;
expected
=
100
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment