Re: Weird table alignment override in website docs style

From: "Jonathan S(dot) Katz" <jkatz(at)postgresql(dot)org>
To: 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-13 17:11:47
Message-ID: 9ab7e14d-90d2-7d91-7a5a-674c7ca6bcb6@postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-www

On 4/13/20 12:16 PM, Tom Lane wrote:
> Now that I've pushed the first iteration of my planned reformatting
> of function/operator tables [1], I notice that the table headings
> are being laid out weirdly on the website. For example look at
> Table 9.33 at
>
> https://www.postgresql.org/docs/devel/functions-enum.html
>
> You can see that the headings are being placed as though by
> align=left, valign=bottom. This is directly contrary to
> what it says in the XML source:
>
> <thead>
> <row>
> <entry spanname="name" align="center" valign="middle" morerows="2">Function</entry>
> <entry spanname="sig" align="center">Signature</entry>
> </row>
> <row>
> <entry spanname="desc" align="center">Description</entry>
> </row>
> <row>
> <entry spanname="example" align="center">Example</entry>
> <entry spanname="exresult" align="center">Example Result</entry>
> </row>
> </thead>
>
> Weirder yet, the default valign=top *does* seem to get applied
> correctly in the table body; it's just the header that's wrong.
>
> I poked around in the website stylesheets and couldn't spot anything
> that seemed to be an intentional override of table alignment, so
> I'm wondering if this is an artifact of the margins-hacking that
> I do see there. Any ideas how to fix it?

Yeah, there appear to be two CSS rules overriding the valign="middle"
attribute that end up forcing it to the top. It shouldn't be too
difficult to fix -- I have a prototype of it working on my local. I can
test it against a nightly tarball and push up a fix.

Jonathan

In response to

Responses

Browse pgsql-www by date

  From Date Subject
Next Message Tom Lane 2020-04-13 17:14:38 Re: Weird table alignment override in website docs style
Previous Message Tom Lane 2020-04-13 16:16:43 Weird table alignment override in website docs style