MCPcopy
hub / github.com/ampproject/amphtml / hasNaturalDimensions

Function hasNaturalDimensions

src/core/static-layout.js:43–46  ·  view source on GitHub ↗
(tagName)

Source from the content-addressed store, hash-verified

41 * @return {boolean}
42 */
43export function hasNaturalDimensions(tagName) {
44 tagName = tagName.toUpperCase();
45 return naturalDimensions_[tagName] !== undefined;
46}
47
48/**
49 * Determines the default dimensions for an element which could vary across

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected