bug-texinfo
[Top][All Lists]
Advanced

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

Re: styling flexibility for definitions


From: Per Bothner
Subject: Re: styling flexibility for definitions
Date: Fri, 30 Oct 2020 07:42:12 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.3.1

On 10/30/20 6:34 AM, Patrice Dumas wrote:
On Fri, Oct 30, 2020 at 05:05:28AM -0700, Per Bothner wrote:
On 10/30/20 12:13 AM, Gavin Smith wrote:

I don't think there is a strong reason to not use non-standard attributes:
It's fully supported by javascript and css.  There are a couple of minor reasons
(validation becomes more complicated without a custom DTD, and there is a small 
chance
they might clash with a future standard or browser extension), and some people
disapprove of them.

Why not simply use another class?

One could use a separate class for each category.  For example:
    <dt class="synopsis Function">
or:
    <dt class="synopsis category-function">

However, that would seem to require a distinct CSS style for each category.
--
        --Per Bothner
per@bothner.com   http://per.bothner.com/



reply via email to

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