19.2 Customizing the CSS lines

See Simple Customization of CSS Rules and Imports for information on CSS customization.

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 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 and css_get_info (see Simple Customization of CSS Rules and Imports) to determine the CSS lines.