On Sat, May 01, 2021 at 07:07:28PM -0700, Per Bothner wrote: > 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.
One possibility is to use -c 'CSS_LINES=....' to replace completly the output related to css. Then --css-ref and --css-include output is replaced in that case so those options will not have an effect. > NO_CSS has other effects. Indeed, in addition to removing the CSS lines, it removes class definitions (and probably only some classes, not all). Maybe the best would be to remove NO_CSS completly and document that -c 'CSS_LINES=' can be used to remove/redefine CSS completly? Currently the documentation on NO_CSS/CSS_LINES is very short. The current implementation in makeinfo is complicated, but I can't see another way to achieve the possibility to add to makeinfo CSS rules in other way. Suggestions welcomed, but they should preserve the level of customizability. -- Pat
