Re: Weird table alignment override in website docs style

From: "Jonathan S(dot) Katz" <jkatz(at)postgresql(dot)org>
To: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-www(at)lists(dot)postgresql(dot)org
Subject: Re: Weird table alignment override in website docs style
Date: 2020-04-14 22:29:19
Message-ID: a89beb1f-55e0-3dbe-e92b-bfcae935e6cf@postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-www

On 4/14/20 6:17 PM, David G. Johnston wrote:
> On Tue, Apr 14, 2020 at 2:53 PM Jonathan S. Katz <jkatz(at)postgresql(dot)org
> <mailto:jkatz(at)postgresql(dot)org>> wrote:
>
> On 4/14/20 5:40 PM, Tom Lane wrote:
> > "Jonathan S. Katz" <jkatz(at)postgresql(dot)org
> <mailto:jkatz(at)postgresql(dot)org>> writes:
> >> The fix is now live:
> >>      https://www.postgresql.org/docs/devel/functions-enum.html
> >
> > Hm, looking at
> >
> > https://www.postgresql.org/docs/devel/functions-enum.html
> >
> > it seems like it's now handling valign=middle for the "Function"
> > header, but it's still ignoring align=center for all the headers.
>
> Oops I missed that, sorry.
>
> Doing some research, and from what I recall, align/valign as HTML
> properties are technically no longer supported in HTML5 -- you are
> supposed to handle this with CSS (text-align & vertical-align
> respectively)[1]. The main reason it still works is that browsers still
> support that backwards compatibility.
>
> I do have a fix on my local that accounts for this using CSS attribute
> selectors to check for that value and then apply it as CSS and it is
> safe across browsers. I do wonder if it's more prudent to have a class
> on it that I can check for?
>
>
> I would suggest adding a class to the table element designating this as
> a "v12" style table.

This would involve edits to the source documentation generation. Perhaps
not unreasonable to do, and then we can namespace the changes (which we
already do in the pgweb CSS).

However, I would be a -1 for doing it by PostgreSQL version, but rather
have it for "table version" as the table versions change less.

Jonathan

In response to

Responses

Browse pgsql-www by date

  From Date Subject
Next Message David G. Johnston 2020-04-14 23:11:39 Re: Weird table alignment override in website docs style
Previous Message David G. Johnston 2020-04-14 22:17:14 Re: Weird table alignment override in website docs style