Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F121795089
offsetParent.js
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sun, Jul 13, 23:25
Size
465 B
Mime Type
text/x-java
Expires
Tue, Jul 15, 23:25 (2 d)
Engine
blob
Format
Raw Data
Handle
27392331
Attached To
rOACCT Open Access Compliance Check Tool (OACCT)
offsetParent.js
View Options
import
css
from
'./css'
;
import
ownerDocument
from
'./ownerDocument'
;
var
isHTMLElement
=
function
isHTMLElement
(
e
)
{
return
!!
e
&&
'offsetParent'
in
e
;
};
export
default
function
offsetParent
(
node
)
{
var
doc
=
ownerDocument
(
node
);
var
parent
=
node
&&
node
.
offsetParent
;
while
(
isHTMLElement
(
parent
)
&&
parent
.
nodeName
!==
'HTML'
&&
css
(
parent
,
'position'
)
===
'static'
)
{
parent
=
parent
.
offsetParent
;
}
return
parent
||
doc
.
documentElement
;
}
Event Timeline
Log In to Comment