RFR: 8260328: Drop redundant CSS properties from java.desktop HTML files

Sergey Bylokhov serb at openjdk.java.net
Tue Feb 22 05:10:50 UTC 2022


On Sun, 20 Feb 2022 17:04:39 GMT, Alexey Ivanov <aivanov at openjdk.org> wrote:

> Drop redundant `text-align: left` from `<table>` elements, which don't affect the table alignment. Then drop `text-align: center` from `<th> elements which counter-act the align set on the `<table>`.
> 
> Also drop `vertical-align: top` from table cells and declare this style globally. This makes the properties and values be rendered at the top of the table cell in cases where the description wraps to multiple lines.
> 
> Visually, the updated tables look nearly the same way as before. I left out applying top alignment for `<thead>` elements: the headers are center-aligned. You can see this in tables for `JOptionPane`, `JProgressBar` and other components which have long descriptions so that *Expected Type* and *Default Value* are wrapped to two lines.

Marked as reviewed by serb (Reviewer).

-------------

PR: https://git.openjdk.java.net/jdk/pull/7546



More information about the client-libs-dev mailing list