19.2.2 Customizing the CSS Lines

The CSS element.class that appeared in a file, gathered through html_attribute_class calls (see Formatting HTML Element with Classes) are available through the html_get_css_elements_classes function:

Function: \@css_element_classes = $converter->html_get_css_elements_classes ($file_name)

Returns a reference on an array containing element.class pairs of elements and classes appearing in $file_name.

It is possible to change completely how CSS lines are generated by redefining the following function reference:

Function Reference: $css_lines format_css_lines ($converter, $file_name)

This function returns the CSS lines and <script> HTML element for $file_name.

In the default case, the function reference uses CSS_REFS corresponding to command-line --css-ref, html_get_css_elements_classes, css_get_info and css_element_class_rule (see Customization of CSS Rules, Imports and Selectors) to determine the CSS lines.