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

Function getOverflowLine

ads/vendors/csa.js:338–345  ·  view source on GitHub ↗

* Helper function to create a line element for the overflow element * @param {!Window} global The window object of the iframe * @return {!Element}

(global)

Source from the content-addressed store, hash-verified

336 * @return {!Element}
337 */
338function getOverflowLine(global) {
339 const line = global.document.createElement('div');
340 setStyles(line, {
341 background: 'rgba(0,0,0,.16)',
342 height: '1px',
343 });
344 return line;
345}
346
347/**
348 * Helper function to create a chevron element for the overflow element

Callers 1

getOverflowElementFunction · 0.85

Calls 1

setStylesFunction · 0.90

Tested by

no test coverage detected