MCPcopy Index your code
hub / github.com/NativeScript/NativeScript / formatV

Function formatV

packages/core/css/parser.ts:295–304  ·  view source on GitHub ↗
(align: Parsed<VerticalAlign>, offset: Parsed<LengthPercentage>)

Source from the content-addressed store, hash-verified

293 return align.value;
294 }
295 function formatV(align: Parsed<VerticalAlign>, offset: Parsed<LengthPercentage>) {
296 if (align.value === 'center') {
297 return 'center';
298 }
299 if (offset && offset.value.value !== 0) {
300 return { align: align.value, offset: offset.value };
301 }
302
303 return align.value;
304 }
305 let end = start;
306 if (keyword && backgroundPositionKeywords.has(keyword.value)) {
307 end = keyword.end;

Callers 1

parseBackgroundPositionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected