bug-texinfo
[Top][All Lists]
Advanced

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

Re: how to skip default css format lines in html output


From: Per Bothner
Subject: Re: how to skip default css format lines in html output
Date: Thu, 6 May 2021 13:01:04 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1



On 5/6/21 12:36 PM, Gavin Smith wrote:
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.

Is this causing a practical problem?  Can you not override the
inline CSS with a referenced CSS file?

Yes, I can override a specific rule.  However,
it makes priority order of the various rules a bit fragile.
It also makes it difficult to add to or edit the default rules
as it may interact with user css rules in hard-to-anticipate ways.

Plus it clutters up the HTML with stuff thet doesn't belong there.
If/when we add an option to generate xml/xhtml (as needed for epub)
then the default rules will be inside an XML comment and hence
ignored.  It seems fragile if the appearance of a document
depends on whether it is html or xhtml.

I don't know where the advice to use !important comes from
as I couldn't find this in the manual anywhere.

Search for '! important' (with a space after the '!') in
http://www.gnu.org/software/texinfo/manual/texinfo/html_node/HTML-CSS.html
--
        --Per Bothner
per@bothner.com   http://per.bothner.com/



reply via email to

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