It seems wrong to include inline css in generated html files,
especially when using the --ccs-ref or -C INFO_JS_DIR options.
The documentation is complicated. The advice to use !important
to override the default style rules feels quite wrong-headed.
However, looking at _default_format_css_lines in HTML.pm
I don't see a clean/clear way to skip the default rules.
NO_CSS has other effects. I don't understand this test:
return if (!@{$self->{'css_import_lines'}} and !@{$self->{'css_rule_lines'}}
and !keys(%{$self->{'css_map'}}) and !@$css_refs);
One simple and clean idea would be for a --css-ref option to cause the
default rules to be skipped - but it would break backward compatibility.
I don't know how seriously.
One option is to piggy0back on the -ccs-include option.
For example --css-include=NONE or --css-include=no-defaults
would skip the default rules. Or an entirely new option.
--
--Per Bothner
[email protected] http://per.bothner.com/