MCPcopy Create free account
hub / github.com/chearon/dropflow / peg$f46

Function peg$f46

src/parse-css.js:908–922  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

906 return ret;
907};
908 var peg$f46 = function(x) {
909 if (x[0] === undefined) return;
910
911 const ret = Object.assign({
912 fontStyle: 'normal',
913 fontWeight: 400,
914 fontVariant: 'normal',
915 fontStretch: 'normal'
916 }, x[0]);
917
918 ret.fontSize = x[1];
919 ret.lineHeight = x[2][1] === '/' ? x[2][3] : 'normal';
920 ret.fontFamily = x[3];
921 return ret;
922 };
923 var peg$f47 = function() { return {outer: 'block', inner: 'flow'}; };
924 var peg$f48 = function() { return {outer: 'inline', inner: 'flow-root'}; };
925 var peg$f49 = function() { return {outer: 'inline', inner: 'flow'}; };

Callers 1

peg$parsefontFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected