Lines Matching defs:p

357 					} elseif ($level === 1) {  // e.g. p or .class or #id or p.class or p#id
924 if ($bg['p']) {
925 $newprop['BACKGROUND-POSITION'] = $bg['p'];
958 $bg['p'] = '50% 100%';
960 $bg['p'] = '50% 0%';
962 $bg['p'] = $bits[0] . ' 50%';
968 $bg['p'] = $bits[1] . ' ' . $bits[0];
970 $bg['p'] = $bits[0] . ' ' . $bits[1];
974 if (isset($bg['p'])) {
976 $bg['p'] = preg_replace('/(left|top)/', '0%', $bg['p']);
977 $bg['p'] = preg_replace('/(right|bottom)/', '100%', $bg['p']);
978 $bg['p'] = preg_replace('/(center)/', '50%', $bg['p']);
980 if (!preg_match('/[\-]{0,1}\d+(in|cm|mm|pt|pc|em|ex|px|%)* [\-]{0,1}\d+(in|cm|mm|pt|pc|em|ex|px|%)*/', $bg['p'])) {
981 $bg['p'] = false;
984 $newprop['BACKGROUND-POSITION'] = $bg['p'];
1088 $p = explode(' ', trim($s));
1089 if (isset($p[0])) {
1090 $new['x'] = $this->sizeConverter->convert(trim($p[0]), $this->mpdf->blk[$this->mpdf->blklvl - 1]['inner_width'], $this->mpdf->FontSize, false);
1092 if (isset($p[1])) {
1093 $new['y'] = $this->sizeConverter->convert(trim($p[1]), $this->mpdf->blk[$this->mpdf->blklvl - 1]['inner_width'], $this->mpdf->FontSize, false);
1095 if (isset($p[2])) {
1096 if (preg_match('/^\s*[\.\-0-9]/', $p[2])) {
1097 $new['blur'] = $this->sizeConverter->convert(trim($p[2]), $this->mpdf->blk[$this->mpdf->blklvl - 1]['inner_width'], $this->mpdf->FontSize, false);
1099 $new['col'] = $this->colorConverter->convert(preg_replace('/\*/', ',', $p[2]), $this->mpdf->PDFAXwarnings);
1101 if (isset($p[3])) {
1102 if (preg_match('/^\s*[\.\-0-9]/', $p[3])) {
1103 $new['spread'] = $this->sizeConverter->convert(trim($p[3]), $this->mpdf->blk[$this->mpdf->blklvl - 1]['inner_width'], $this->mpdf->FontSize, false);
1105 $new['col'] = $this->colorConverter->convert(preg_replace('/\*/', ',', $p[3]), $this->mpdf->PDFAXwarnings);
1107 if (isset($p[4])) {
1108 $new['col'] = $this->colorConverter->convert(preg_replace('/\*/', ',', $p[4]), $this->mpdf->PDFAXwarnings);
1137 $p = explode(' ', trim($s));
1139 if (isset($p[0])) {
1140 $new['x'] = $this->sizeConverter->convert(trim($p[0]), $this->mpdf->FontSize, $this->mpdf->FontSize, false);
1143 if (isset($p[1])) {
1144 $new['y'] = $this->sizeConverter->convert(trim($p[1]), $this->mpdf->FontSize, $this->mpdf->FontSize, false);
1147 if (isset($p[2])) {
1149 if (preg_match('/^\s*[\.\-0-9]/', $p[2])) {
1152 trim($p[2]),
1159 $new['col'] = $this->colorConverter->convert(preg_replace('/\*/', ',', $p[2]), $this->mpdf->PDFAXwarnings);
1162 if (isset($p[3])) {
1163 $new['col'] = $this->colorConverter->convert(preg_replace('/\*/', ',', $p[3]), $this->mpdf->PDFAXwarnings);
1182 $bg = ['c' => false, 'i' => false, 'r' => false, 'p' => false,];
1207 $bg['p'] = '50% 100%';
1209 $bg['p'] = '50% 0%';
1211 $bg['p'] = $bits[0] . ' 50%';
1216 $bg['p'] = $bits[1] . ' ' . $bits[0];
1218 $bg['p'] = $bits[0] . ' ' . $bits[1];
1221 if ($bg['p']) {
1222 $bg['p'] = preg_replace('/(left|top)/', '0%', $bg['p']);
1223 $bg['p'] = preg_replace('/(right|bottom)/', '100%', $bg['p']);
1224 $bg['p'] = preg_replace('/(center)/', '50%', $bg['p']);
1225 if (!preg_match('/[\-]{0,1}\d+(in|cm|mm|pt|pc|em|ex|px|%)* [\-]{0,1}\d+(in|cm|mm|pt|pc|em|ex|px|%)*/', $bg['p'])) {
1226 $bg['p'] = false;
1349 function _mergeCSS($p, &$t)
1351 // Save Cascading CSS e.g. "div.topic p" at this block level
1352 if (isset($p) && $p) {
1354 $t = $this->array_merge_recursive_unique($t, $p);
1356 $t = $p;
1383 function _mergeFullCSS($p, &$t, $tag, $classes, $id, $lang)
1386 if (isset($p[$tag])) {
1387 $this->_mergeCSS($p[$tag], $t);
1391 if (isset($p['CLASS>>' . $class])) {
1392 $this->_mergeCSS($p['CLASS>>' . $class], $t);
1396 if ($tag === 'TR' && isset($p) && $p) {
1397 foreach ($p as $k => $val) {
1418 $this->_mergeCSS($p[$tag . '>>SELECTORNTHCHILD>>' . $m[1]], $t);
1424 if (isset($lang) && isset($p['LANG>>' . $lang])) {
1425 $this->_mergeCSS($p['LANG>>' . $lang], $t);
1428 if (isset($id) && isset($p['ID>>' . $id])) {
1429 $this->_mergeCSS($p['ID>>' . $id], $t);
1434 if (isset($p[$tag . '>>CLASS>>' . $class])) {
1435 $this->_mergeCSS($p[$tag . '>>CLASS>>' . $class], $t);
1439 if (isset($lang) && isset($p[$tag . '>>LANG>>' . $lang])) {
1440 $this->_mergeCSS($p[$tag . '>>LANG>>' . $lang], $t);
1443 if (isset($id) && isset($p[$tag . '>>ID>>' . $id])) {
1444 $this->_mergeCSS($p[$tag . '>>ID>>' . $id], $t);
1464 function _set_mergedCSS(&$m, &$p, $d = true, $bd = false)
1472 $p = array_merge($p, $m);
1473 $this->_mergeBorders($p, $m);
1487 $p = trim($b['BORDER-' . $side]);
1489 $p = '';
1492 if ($p) {
1493 $b['BORDER-' . $side] = preg_replace('/(\S+)\s+(\S+)\s+(\S+)/', '\\1 ' . $s . ' \\3', $p);
1498 if ($p) {
1499 $b['BORDER-' . $side] = preg_replace('/(\S+)\s+(\S+)\s+(\S+)/', $s . ' \\2 \\3', $p);
1504 if ($p) {
1505 $b['BORDER-' . $side] = preg_replace('/(\S+)\s+(\S+)\s+(\S+)/', '\\1 \\2 ' . $s, $p);
1517 $p = [];
1546 // Save Cascading CSS e.g. "div.topic p" at this block level
1599 // Save Cascading CSS e.g. "div.topic p" at this block level
1610 $p['MARGIN-COLLAPSE'] = 'COLLAPSE';
1613 $p['LINE-HEIGHT'] = $this->mpdf->blk[$this->mpdf->blklvl - 1]['line_height'];
1617 $p['LINE-STACKING-STRATEGY'] = $this->mpdf->blk[$this->mpdf->blklvl - 1]['line_stacking_strategy'];
1620 $p['LINE-STACKING-SHIFT'] = $this->mpdf->blk[$this->mpdf->blklvl - 1]['line_stacking_shift'];
1624 $p['DIRECTION'] = $this->mpdf->blk[$this->mpdf->blklvl - 1]['direction'];
1629 $p['LIST-STYLE-TYPE'] = $this->mpdf->blk[$this->mpdf->blklvl - 1]['list_style_type'];
1633 $p['LIST-STYLE-IMAGE'] = $this->mpdf->blk[$this->mpdf->blklvl - 1]['list_style_image'];
1636 $p['LIST-STYLE-POSITION'] = $this->mpdf->blk[$this->mpdf->blklvl - 1]['list_style_position'];
1641 $p['TEXT-ALIGN'] = 'left';
1643 $p['TEXT-ALIGN'] = 'justify';
1645 $p['TEXT-ALIGN'] = 'right';
1647 $p['TEXT-ALIGN'] = 'center';
1653 $p['BACKGROUND-COLOR'] = $this->colorConverter->colAtoString($cor);
1658 $p['TEXT-INDENT'] = $this->mpdf->blk[$this->mpdf->blklvl - 1]['text_indent'];
1662 $this->inlinePropsToCSS($biilp, $p); // mPDF 5.7.1
1672 $p['DIRECTION'] = $attr['DIR'];
1676 $p['LANG'] = $attr['LANG'];
1679 $p['COLOR'] = $attr['COLOR'];
1684 $p['WIDTH'] = $attr['WIDTH'];
1687 $p['HEIGHT'] = $attr['HEIGHT'];
1692 $p['FONT-FAMILY'] = $attr['FACE'];
1716 $p['FONT-SIZE'] = $s;
1721 $p['VERTICAL-ALIGN'] = $attr['VALIGN'];
1724 $p['MARGIN-TOP'] = $attr['VSPACE'];
1725 $p['MARGIN-BOTTOM'] = $attr['VSPACE'];
1728 $p['MARGIN-LEFT'] = $attr['HSPACE'];
1729 $p['MARGIN-RIGHT'] = $attr['HSPACE'];
1737 $p = array_merge($p, $zp); // !! Note other way round !!
1738 $this->_mergeBorders($p, $zp);
1746 $p['BORDER-SPACING-H'] = $p['BORDER-SPACING-V'] = $attr['CELLSPACING'];
1750 $p['PADDING-LEFT'] = $this->mpdf->table[$this->mpdf->tableLevel][$this->mpdf->tbctr[$this->mpdf->tableLevel]]['cell_padding'];
1751 $p['PADDING-RIGHT'] = $this->mpdf->table[$this->mpdf->tableLevel][$this->mpdf->tbctr[$this->mpdf->tableLevel]]['cell_padding'];
1752 $p['PADDING-TOP'] = $this->mpdf->table[$this->mpdf->tableLevel][$this->mpdf->tbctr[$this->mpdf->tableLevel]]['cell_padding'];
1753 $p['PADDING-BOTTOM'] = $this->mpdf->table[$this->mpdf->tableLevel][$this->mpdf->tbctr[$this->mpdf->tableLevel]]['cell_padding'];
1757 // STYLESHEET TAG e.g. h1 p div table
1764 $p = array_merge($p, $zp);
1765 $this->_mergeBorders($p, $zp);
1779 $p = array_merge($p, $zp);
1780 $this->_mergeBorders($p, $zp);
1813 $p = array_merge($p, $zp);
1814 $this->_mergeBorders($p, $zp);
1830 $p = array_merge($p, $zp);
1831 $this->_mergeBorders($p, $zp);
1839 $p = array_merge($p, $zp);
1840 $this->_mergeBorders($p, $zp);
1852 $p = array_merge($p, $zp);
1853 $this->_mergeBorders($p, $zp);
1858 // STYLESHEET CLASS e.g. p.smallone{} div.redletter{}
1868 $p = array_merge($p, $zp);
1869 $this->_mergeBorders($p, $zp);
1881 $p = array_merge($p, $zp);
1882 $this->_mergeBorders($p, $zp);
1890 $p = array_merge($p, $zp);
1891 $this->_mergeBorders($p, $zp);
1896 // STYLESHEET CLASS e.g. p#smallone{} div#redletter{}
1903 $p = array_merge($p, $zp);
1904 $this->_mergeBorders($p, $zp);
1908 // Cascaded e.g. div.class p only works for block level
1911 $this->_set_mergedCSS($this->mpdf->blk[$this->mpdf->blklvl - 1]['cascadeCSS'][$tag], $p);
1913 $this->_set_mergedCSS($this->mpdf->blk[$this->mpdf->blklvl - 1]['cascadeCSS']['CLASS>>' . $class], $p);
1915 $this->_set_mergedCSS($this->mpdf->blk[$this->mpdf->blklvl - 1]['cascadeCSS']['ID>>' . $attr['ID']], $p);
1917 $this->_set_mergedCSS($this->mpdf->blk[$this->mpdf->blklvl - 1]['cascadeCSS'][$tag . '>>CLASS>>' . $class], $p);
1919 $this->_set_mergedCSS($this->mpdf->blk[$this->mpdf->blklvl - 1]['cascadeCSS'][$tag . '>>ID>>' . $attr['ID']], $p);
1922 $this->_set_mergedCSS($this->mpdf->blk[$this->mpdf->blklvl]['cascadeCSS'][$tag], $p);
1924 $this->_set_mergedCSS($this->mpdf->blk[$this->mpdf->blklvl]['cascadeCSS']['CLASS>>' . $class], $p);
1926 $this->_set_mergedCSS($this->mpdf->blk[$this->mpdf->blklvl]['cascadeCSS']['ID>>' . $attr['ID']], $p);
1928 $this->_set_mergedCSS($this->mpdf->blk[$this->mpdf->blklvl]['cascadeCSS'][$tag . '>>CLASS>>' . $class], $p);
1930 $this->_set_mergedCSS($this->mpdf->blk[$this->mpdf->blklvl]['cascadeCSS'][$tag . '>>ID>>' . $attr['ID']], $p);
1934 $this->_set_mergedCSS($this->tablecascadeCSS[$this->tbCSSlvl - 1][$tag], $p, false, 9);
1936 $this->_set_mergedCSS($this->tablecascadeCSS[$this->tbCSSlvl - 1]['CLASS>>' . $class], $p, false, 9);
1961 $this->_set_mergedCSS($this->tablecascadeCSS[$this->tbCSSlvl - 1][$tag . '>>SELECTORNTHCHILD>>' . $m[1]], $p, false, 9);
1967 $this->_set_mergedCSS($this->tablecascadeCSS[$this->tbCSSlvl - 1]['ID>>' . $attr['ID']], $p, false, 9);
1969 $this->_set_mergedCSS($this->tablecascadeCSS[$this->tbCSSlvl - 1][$tag . '>>CLASS>>' . $class], $p, false, 9);
1971 $this->_set_mergedCSS($this->tablecascadeCSS[$this->tbCSSlvl - 1][$tag . '>>ID>>' . $attr['ID']], $p, false, 9);
1981 $p = array_merge($p, $zp);
1982 $this->_mergeBorders($p, $zp);
1986 return $p;
1990 function inlinePropsToCSS($bilp, &$p)
1993 $p['FONT-FAMILY'] = $bilp['family'];
1996 $p['FONT-STYLE'] = 'italic';
1999 $p['FONT-SIZE'] = $bilp['sizePt'] . 'pt';
2002 $p['FONT-WEIGHT'] = 'bold';
2006 $p['COLOR'] = $this->colorConverter->colAtoString($cor);
2009 $p['LETTER-SPACING'] = $bilp['lSpacingCSS'];
2012 $p['WORD-SPACING'] = $bilp['wSpacingCSS'];
2018 $p['HYPHENS'] = 'none';
2021 $p['HYPHENS'] = 'auto';
2024 $p['HYPHENS'] = 'manual';
2028 $p['TEXT-OUTLINE'] = 'none';
2031 $p['TEXT-OUTLINE-COLOR'] = $this->colorConverter->colAtoString($bilp['textparam']['outline-COLOR']);
2034 $p['TEXT-OUTLINE-WIDTH'] = $bilp['textparam']['outline-WIDTH'] . 'mm';
2042 $p['TEXT-DECORATION'] = 'underline line-through';
2044 $p['TEXT-DECORATION'] = 'line-through';
2047 $p['TEXT-DECORATION'] = 'underline';
2049 $p['TEXT-DECORATION'] = 'none';
2053 $p['VERTICAL-ALIGN'] = 'super';
2055 $p['VERTICAL-ALIGN'] = 'sub';
2057 $p['VERTICAL-ALIGN'] = 'baseline';
2061 $p['TEXT-TRANSFORM'] = 'capitalize';
2063 $p['TEXT-TRANSFORM'] = 'uppercase';
2065 $p['TEXT-TRANSFORM'] = 'lowercase';
2067 $p['TEXT-TRANSFORM'] = 'none';
2071 $p['FONT-KERNING'] = 'normal';
2075 $p['FONT-KERNING'] = 'none';
2079 $p['FONT-VARIANT-POSITION'] = 'super';
2082 $p['FONT-VARIANT-POSITION'] = 'sub';
2084 $p['FONT-VARIANT-POSITION'] = 'normal';
2088 $p['FONT-VARIANT-CAPS'] = 'small-caps';
2093 $p['FONT-LANGUAGE-OVERRIDE'] = $bilp['fontLanguageOverride'];
2095 $p['FONT-LANGUAGE-OVERRIDE'] = 'normal';
2129 $p['FONT-FEATURE-SETTINGS'] = implode(', ', $ffs);
2136 $p = [];
2150 $p = array_merge($zp, $p);
2153 // STYLESHEET TAG e.g. h1 p div table
2157 $p = array_merge($p, $zp);
2167 $p = array_merge($p, $zp);
2174 $p = array_merge($p, $zp);
2177 // STYLESHEET CLASS e.g. p.smallone{} div.redletter{}
2184 $p = array_merge($p, $zp);
2187 // STYLESHEET CLASS e.g. p#smallone{} div#redletter{}
2191 $p = array_merge($p, $zp);
2195 // STYLESHEET TAG e.g. div h1 div p
2197 $this->_set_mergedCSS($oldcascadeCSS[$tag], $p);
2200 $this->_set_mergedCSS($oldcascadeCSS['CLASS>>' . $class], $p);
2204 $this->_set_mergedCSS($oldcascadeCSS['ID>>' . $attr['ID']], $p);
2206 // STYLESHEET CLASS e.g. div.smallone{} p.redletter{}
2208 $this->_set_mergedCSS($oldcascadeCSS[$tag . '>>CLASS>>' . $class], $p);
2210 // STYLESHEET CLASS e.g. div#smallone{} p#redletter{}
2212 $this->_set_mergedCSS($oldcascadeCSS[$tag . '>>ID>>' . $attr['ID']], $p);
2219 $p = array_merge($p, $zp);
2223 return $p;