Invisible table captions in javadoc-generated html

Jonathan Gibbons jonathan.gibbons at oracle.com
Wed Feb 13 11:22:00 PST 2013


Thanks for the report.  Issue 8008164.

-- Jon


On 02/13/2013 10:58 AM, Martin Buchholz wrote:
> Hi doclet maintainers,
>
> This is a bug report with what might be an easy fix.
>
> At javadoc8's suggestion, jsr166 javadoc tables now have <caption> tags.
> But the caption text is invisible, because the background color is the 
> same as the foreground color, #FFFFFF.
>
> See the invisible text for yourself here:
> http://gee.cs.oswego.edu/dl/jsr166/dist/docs/java/util/Deque.html
> If you mouse-select the caption text, it magically becomes visible.
>
> I think the culprit is this code from
> src/share/classes/com/sun/tools/doclets/internal/toolkit/resources/stylesheet.css
>
> .overviewSummary caption, .packageSummary caption, .contentContainer 
> ul.blockList li.blockList caption, .summary caption, 
> .classUseContainer caption, .constantValuesContainer caption {
>     position:relative;
>     text-align:left;
>     background-repeat:no-repeat;
>     color:#FFFFFF;
>     font-weight:bold;
>     clear:none;
>     overflow:hidden;
>     padding:0px;
>     margin:0px;
> }
>
> I have reason to believe that if you change the color: above to e.g. 
> color:#353833, the captions will become visible.  I have no idea 
> whether anything else will change.
>
> Martin




More information about the compiler-dev mailing list