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

Function peg$parsemargin_side

src/parse-css.js:4219–4237  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4217 }
4218
4219 function peg$parsemargin_side() {
4220 var s0;
4221
4222 s0 = peg$parseLENGTH();
4223 if (s0 === peg$FAILED) {
4224 s0 = peg$parsePERCENTAGE();
4225 if (s0 === peg$FAILED) {
4226 if (input.substr(peg$currPos, 4) === peg$c83) {
4227 s0 = peg$c83;
4228 peg$currPos += 4;
4229 } else {
4230 s0 = peg$FAILED;
4231 if (peg$silentFails === 0) { peg$fail(peg$e88); }
4232 }
4233 }
4234 }
4235
4236 return s0;
4237 }
4238
4239 function peg$parseborder_style() {
4240 var s0;

Callers 5

peg$parsemargin_top_decFunction · 0.85
peg$parsemargin_left_decFunction · 0.85
peg$parsemargin_decFunction · 0.85

Calls 3

peg$parseLENGTHFunction · 0.85
peg$parsePERCENTAGEFunction · 0.85
peg$failFunction · 0.85

Tested by

no test coverage detected