MCPcopy Create free account
hub / github.com/ampproject/amphtml / top

Function top

test/unit/test-fixed-layer.js:261–273  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

259 visibility: 'visible',
260 _top: '',
261 get top() {
262 if (
263 elem.computedStyle.transition &&
264 elem.style.transition !== '' &&
265 elem.style.transition !== 'none !important'
266 ) {
267 return this._oldTop;
268 }
269 if (elem.style.bottom) {
270 return elem.autoTop || this._top;
271 }
272 return this._top;
273 },
274 set top(val) {
275 this._oldTop = this._top;
276 this._top = val;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected