cover-caption-query
cover-caption-query(source)Passed as self to a "recolour" cover method to ask it for a show rule
that covers a figure's caption, rather than to cover anything directly.
A caption cannot be covered by rebuilding it: its supplement and number are
generated during layout and are not in the content tree, so covering only
what is there leaves a bare Figure 1: behind, and covering the caption
element itself turns it into a block that breaks away onto its own line. The
method is therefore asked for a show figure.caption rule, which it returns
wrapped around the figure it is handed.
Only recolouring methods are asked. A method that hides or paints covers the caption whole, which needs no such rule.