Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F95172572
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
Fri, Dec 13, 10:53
Size
465 B
Mime Type
text/x-java
Expires
Sun, Dec 15, 10:53 (1 d, 20 h)
Engine
blob
Format
Raw Data
Handle
22916188
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