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

Function atcustommedia

packages/core/css/lib/parse/index.ts:395–405  ·  view source on GitHub ↗

* Parse custom-media.

()

Source from the content-addressed store, hash-verified

393 */
394
395 function atcustommedia() {
396 var pos = position();
397 var m = match(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/);
398 if (!m) return;
399
400 return pos({
401 type: 'custom-media',
402 name: trim(m[1]),
403 media: trim(m[2]),
404 });
405 }
406
407 /**
408 * Parse paged media.

Callers 1

atruleFunction · 0.85

Calls 3

trimFunction · 0.85
positionFunction · 0.70
matchFunction · 0.70

Tested by

no test coverage detected