• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10/tidy-15.15/tidy/src/

Lines Matching +defs:color +defs:values

21  Bind attribute types to procedures to check values.
119 { TidyAttr_CELLPADDING, "cellpadding", VERS_FROM32, CH_LENGTH }, /* % or pixel values */
136 { TidyAttr_COLOR, "color", VERS_LOOSE, CH_COLOR }, /* BASEFONT, FONT */
1612 ctmbstr const values[] = {"left", "right", "center", "justify", NULL};
1633 if (!AttrValueIsAmong(attval, values))
1645 ctmbstr const values[] = {"top", "middle", "bottom", "baseline", NULL};
1658 if (AttrValueIsAmong(attval, values))
1712 ctmbstr const values[] = {"_blank", "_self", "_parent", "_top", NULL};
1725 if (!AttrValueIsAmong(attval, values))
1731 ctmbstr const values[] = {"get", "post", NULL};
1732 CheckAttrValidity( doc, node, attval, values );
1737 ctmbstr const values[] = {"none", "left", "right", "all", NULL};
1749 if (!AttrValueIsAmong(attval, values))
1755 ctmbstr const values[] = {"rect", "default", "circle", "poly", NULL};
1756 CheckAttrValidity( doc, node, attval, values );
1761 ctmbstr const values[] = {"row", "rowgroup", "col", "colgroup", NULL};
1762 CheckAttrValidity( doc, node, attval, values );
1797 /* check hexadecimal color value */
1798 static Bool IsValidColorCode(ctmbstr color)
1802 if (TY_(tmbstrlen)(color) != 6)
1807 if (!TY_(IsDigit)(color[i]) && !strchr("abcdef", TY_(ToLower)(color[i])))
1813 /* check color syntax and beautify value by option */
1827 /* 727851 - add hash to hash-less color values */
1857 /* if it is not a valid color code, it is a color name */
1873 ctmbstr const values[] = {"data", "object", "ref", NULL};
1874 CheckAttrValidity( doc, node, attval, values );
1880 ctmbstr const values[] = {"no", "auto", "yes", NULL};
1881 CheckAttrValidity( doc, node, attval, values );
1887 ctmbstr const values[] = {"rtl", "ltr", NULL};
1888 CheckAttrValidity( doc, node, attval, values );