bug-texinfo
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

how to skip default css format lines in html output


From: Per Bothner
Subject: how to skip default css format lines in html output
Date: Sat, 1 May 2021 19:07:28 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1

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
per@bothner.com   http://per.bothner.com/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]