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
02d7f9ae
Commit
02d7f9ae
authored
Jan 03, 2013
by
Dave Methvin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove support.reliableHiddenOffsets detect.
parent
3d9edb32
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
23 deletions
+3
-23
css.js
src/css.js
+1
-1
support.js
src/support.js
+2
-22
No files found.
src/css.js
View file @
02d7f9ae
...
@@ -537,7 +537,7 @@ jQuery(function() {
...
@@ -537,7 +537,7 @@ jQuery(function() {
if
(
jQuery
.
expr
&&
jQuery
.
expr
.
filters
)
{
if
(
jQuery
.
expr
&&
jQuery
.
expr
.
filters
)
{
jQuery
.
expr
.
filters
.
hidden
=
function
(
elem
)
{
jQuery
.
expr
.
filters
.
hidden
=
function
(
elem
)
{
return
(
elem
.
offsetWidth
===
0
&&
elem
.
offsetHeight
===
0
)
||
(
!
jQuery
.
support
.
reliableHiddenOffsets
&&
((
elem
.
style
&&
elem
.
style
.
display
)
||
jQuery
.
css
(
elem
,
"display"
))
===
"none"
)
;
return
elem
.
offsetWidth
===
0
&&
elem
.
offsetHeight
===
0
;
};
};
jQuery
.
expr
.
filters
.
visible
=
function
(
elem
)
{
jQuery
.
expr
.
filters
.
visible
=
function
(
elem
)
{
...
...
src/support.js
View file @
02d7f9ae
jQuery
.
support
=
(
function
()
{
jQuery
.
support
=
(
function
()
{
var
support
,
all
,
a
,
select
,
opt
,
input
,
fragment
,
eventName
,
i
sSupported
,
i
,
var
support
,
all
,
a
,
select
,
opt
,
input
,
fragment
,
eventName
,
i
,
div
=
document
.
createElement
(
"div"
);
div
=
document
.
createElement
(
"div"
);
// Setup
// Setup
...
@@ -114,28 +114,8 @@ jQuery.support = (function() {
...
@@ -114,28 +114,8 @@ jQuery.support = (function() {
container
=
document
.
createElement
(
"div"
);
container
=
document
.
createElement
(
"div"
);
container
.
style
.
cssText
=
"border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px"
;
container
.
style
.
cssText
=
"border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px"
;
body
.
appendChild
(
container
).
appendChild
(
div
);
// Support: IE8
// Check if table cells still have offsetWidth/Height when they are set
// to display:none and there are still other visible table cells in a
// table row; if so, offsetWidth/Height are not reliable for use when
// determining if an element has been hidden directly using
// display:none (it is still safe to use offsets if a parent element is
// hidden; don safety goggles and see bug #4512 for more information).
div
.
innerHTML
=
"<table><tr><td></td><td>t</td></tr></table>"
;
tds
=
div
.
getElementsByTagName
(
"td"
);
tds
[
0
].
style
.
cssText
=
"padding:0;margin:0;border:0;display:none"
;
isSupported
=
(
tds
[
0
].
offsetHeight
===
0
);
tds
[
0
].
style
.
display
=
""
;
tds
[
1
].
style
.
display
=
"none"
;
// Support: IE8
// Check if empty table cells still have offsetWidth/Height
support
.
reliableHiddenOffsets
=
isSupported
&&
(
tds
[
0
].
offsetHeight
===
0
);
// Check box-sizing and margin behavior
// Check box-sizing and margin behavior
body
.
appendChild
(
container
).
appendChild
(
div
);
div
.
innerHTML
=
""
;
div
.
innerHTML
=
""
;
div
.
style
.
cssText
=
"box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%;"
;
div
.
style
.
cssText
=
"box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%;"
;
support
.
boxSizing
=
(
div
.
offsetWidth
===
4
);
support
.
boxSizing
=
(
div
.
offsetWidth
===
4
);
...
...
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