RFR: 8253117: Replace HTML tables in javadoc summaries with CSS grid elements [v3]
Hannes Wallnöfer
hannesw at openjdk.java.net
Thu Oct 8 09:12:51 UTC 2020
On Tue, 6 Oct 2020 23:30:22 GMT, Jonathan Gibbons <jjg at openjdk.org> wrote:
>> Hannes Wallnöfer has updated the pull request with a new target base due to a merge or a rebase. The pull request now
>> contains seven commits:
>> - Merge master
>> - Address issues raised in code review:
>> - remove unused styles and method
>> - rename alternating table row styles
>> - move id attribute for tabs
>> - add line breaks in test text blocks to make them easier to read and maintain
>> - Fix trailing whitespace
>> - Clean up comments and styles
>> - Restore table spacing
>> - Adapt tests to grid summaries
>> - Use CSS Grid Layout for javadoc summaries
>
> src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/toolkit/resources/script.js line 58:
>
>> 56: .forEach(function(elem, index) {
>> 57: elem.style.display = '';
>> 58: var isEvenRow = index % (columns * 2) < columns;
>
> OK, this line is weird. Why is the polarity of the row dependent on the number of columns?
Unfortunately we don't have one element per row. The number of elements per row is equal to the number of columns,
therefore this calculation is necessary to determine the row style.
-------------
PR: https://git.openjdk.java.net/jdk/pull/253
More information about the javadoc-dev
mailing list