Lines Matching +defs:b +defs:t

216 		$CSSstr = preg_replace('/[\s\n\r\t\f]/s', ' ', $CSSstr);
294 // Ignores -webkit-gradient so doesn't override -moz-
316 $t = '';
323 $t = trim($tags[0]);
336 $tag = $t;
338 $tag = $t . '>>PSEUDO>>' . $m[1];
343 $tag = $t . '>>NAMED>>' . $t2;
345 $tag = $t . '>>NAMED>>' . $t2 . '>>PSEUDO>>' . $m[1];
360 $t = trim($tags[0]);
363 if ($t) {
367 if (preg_match('/^[.](.*)$/', $t, $m)) {
371 } elseif (preg_match('/^[#](.*)$/', $t, $m)) {
373 } elseif (preg_match('/^\[LANG=[\'\"]{0,1}([A-Z\-]{2,11})[\'\"]{0,1}\]$/', $t, $m)) {
375 } elseif (preg_match('/^:LANG\([\'\"]{0,1}([A-Z\-]{2,11})[\'\"]{0,1}\)$/', $t, $m)) { // mPDF 6 Special case for lang as attribute selector
377 } elseif (preg_match('/^(' . $this->mpdf->allowedCSStags . ')[.](.*)$/', $t, $m)) { // mPDF 6 Special case for lang as attribute selector
381 } elseif (preg_match('/^(' . $this->mpdf->allowedCSStags . ')\s*:NTH-CHILD\((.*)\)$/', $t, $m)) {
383 } elseif (preg_match('/^(' . $this->mpdf->allowedCSStags . ')[#](.*)$/', $t, $m)) {
385 } elseif (preg_match('/^(' . $this->mpdf->allowedCSStags . ')\[LANG=[\'\"]{0,1}([A-Z\-]{2,11})[\'\"]{0,1}\]$/', $t, $m)) {
387 } elseif (preg_match('/^(' . $this->mpdf->allowedCSStags . '):LANG\([\'\"]{0,1}([A-Z\-]{2,11})[\'\"]{0,1}\)$/', $t, $m)) { // mPDF 6 Special case for lang as attribute selector
389 } elseif (preg_match('/^(' . $this->mpdf->allowedCSStags . ')$/', $t)) { // mPDF 6 Special case for lang as attribute selector
390 $tag = $t;
409 $t = trim($tags[$n]);
411 $t = '';
414 if ($t) {
416 if (preg_match('/^[.](.*)$/', $t, $m)) {
420 } elseif (preg_match('/^[#](.*)$/', $t, $m)) {
422 } elseif (preg_match('/^\[LANG=[\'\"]{0,1}([A-Z\-]{2,11})[\'\"]{0,1}\]$/', $t, $m)) {
424 } elseif (preg_match('/^:LANG\([\'\"]{0,1}([A-Z\-]{2,11})[\'\"]{0,1}\)$/', $t, $m)) { // mPDF 6 Special case for lang as attribute selector
426 } elseif (preg_match('/^(' . $this->mpdf->allowedCSStags . ')[.](.*)$/', $t, $m)) { // mPDF 6 Special case for lang as attribute selector
430 } elseif (preg_match('/^(' . $this->mpdf->allowedCSStags . ')\s*:NTH-CHILD\((.*)\)$/', $t, $m)) {
432 } elseif (preg_match('/^(' . $this->mpdf->allowedCSStags . ')[#](.*)$/', $t, $m)) {
434 } elseif (preg_match('/^(' . $this->mpdf->allowedCSStags . ')\[LANG=[\'\"]{0,1}([A-Z\-]{2,11})[\'\"]{0,1}\]$/', $t, $m)) {
436 } elseif (preg_match('/^(' . $this->mpdf->allowedCSStags . '):LANG\([\'\"]{0,1}([A-Z\-]{2,11})[\'\"]{0,1}\)$/', $t, $m)) { // mPDF 6 Special case for lang as attribute selector
438 } elseif (preg_match('/^(' . $this->mpdf->allowedCSStags . ')$/', $t)) { // mPDF 6 Special case for lang as attribute selector
439 $tag = $t;
521 // Ignores -webkit-gradient so doesn't override -moz-
1267 $b = [];
1275 $b['TL-H'] = $b['TR-H'] = $b['BR-H'] = $b['BL-H'] = $prop[0];
1277 $b['TL-H'] = $b['BR-H'] = $prop[0];
1278 $b['TR-H'] = $b['BL-H'] = $prop[1];
1280 $b['TL-H'] = $prop[0];
1281 $b['TR-H'] = $b['BL-H'] = $prop[1];
1282 $b['BR-H'] = $prop[2];
1284 $b['TL-H'] = $prop[0];
1285 $b['TR-H'] = $prop[1];
1286 $b['BR-H'] = $prop[2];
1287 $b['BL-H'] = $prop[3];
1293 $b['TL-V'] = $b['TR-V'] = $b['BR-V'] = $b['BL-V'] = $prop[0];
1295 $b['TL-V'] = $b['BR-V'] = $prop[0];
1296 $b['TR-V'] = $b['BL-V'] = $prop[1];
1298 $b['TL-V'] = $prop[0];
1299 $b['TR-V'] = $b['BL-V'] = $prop[1];
1300 $b['BR-V'] = $prop[2];
1302 $b['TL-V'] = $prop[0];
1303 $b['TR-V'] = $prop[1];
1304 $b['BR-V'] = $prop[2];
1305 $b['BL-V'] = $prop[3];
1308 $b['TL-V'] = Arrays::get($b, 'TL-H', 0);
1309 $b['TR-V'] = Arrays::get($b, 'TR-H', 0);
1310 $b['BL-V'] = Arrays::get($b, 'BL-H', 0);
1311 $b['BR-V'] = Arrays::get($b, 'BR-H', 0);
1314 return $b;
1332 $b['TL-H'] = $h;
1333 $b['TL-V'] = $v;
1335 $b['TR-H'] = $h;
1336 $b['TR-V'] = $v;
1338 $b['BL-H'] = $h;
1339 $b['BL-V'] = $v;
1341 $b['BR-H'] = $h;
1342 $b['BR-V'] = $v;
1345 return $b;
1349 function _mergeCSS($p, &$t)
1353 if ($t) {
1354 $t = $this->array_merge_recursive_unique($t, $p);
1356 $t = $p;
1383 function _mergeFullCSS($p, &$t, $tag, $classes, $id, $lang)
1387 $this->_mergeCSS($p[$tag], $t);
1392 $this->_mergeCSS($p['CLASS>>' . $class], $t);
1418 $this->_mergeCSS($p[$tag . '>>SELECTORNTHCHILD>>' . $m[1]], $t);
1425 $this->_mergeCSS($p['LANG>>' . $lang], $t);
1429 $this->_mergeCSS($p['ID>>' . $id], $t);
1435 $this->_mergeCSS($p[$tag . '>>CLASS>>' . $class], $t);
1440 $this->_mergeCSS($p[$tag . '>>LANG>>' . $lang], $t);
1444 $this->_mergeCSS($p[$tag . '>>ID>>' . $id], $t);
1479 function _mergeBorders(&$b, &$a)
1481 // Merges $a['BORDER-TOP-STYLE'] to $b['BORDER-TOP'] etc.
1484 if (isset($a['BORDER-' . $side . '-' . $el])) { // e.g. $b['BORDER-TOP-STYLE']
1486 if (isset($b['BORDER-' . $side])) { // e.g. $b['BORDER-TOP']
1487 $p = trim($b['BORDER-' . $side]);
1493 $b['BORDER-' . $side] = preg_replace('/(\S+)\s+(\S+)\s+(\S+)/', '\\1 ' . $s . ' \\3', $p);
1495 $b['BORDER-' . $side] = '0px ' . $s . ' #000000';
1499 $b['BORDER-' . $side] = preg_replace('/(\S+)\s+(\S+)\s+(\S+)/', $s . ' \\2 \\3', $p);
1501 $b['BORDER-' . $side] = $s . ' none #000000';
1505 $b['BORDER-' . $side] = preg_replace('/(\S+)\s+(\S+)\s+(\S+)/', '\\1 \\2 ' . $s, $p);
1507 $b['BORDER-' . $side] = '0px none ' . $s;
1651 if (isset($this->mpdf->blk[$this->mpdf->blklvl - 1]['bgcolor']) && $this->mpdf->blk[$this->mpdf->blklvl - 1]['bgcolor']) { // Doesn't officially inherit, but default value is transparent (?=inherited)
1933 // false, 9 = don't check for 'depth' and do set border dominance
2237 $b = 1;
2240 $b = 0;
2243 $b = $f[1] + 0;
2253 $b = 0;
2262 $b = $f[3] + 0;
2267 if (((($c % $a) - $b) % $a) === 0 && $c >= $b) {
2271 if ($c == $b) {
2275 if (((($c % $a) - $b) % $a) === 0 && $c <= $b) {