repeat-index property CSS Reference



Definition and Usage

The ::repeat-index pseudo-element represents the current item of a repeating sequence. It takes the place of the ::repeat-item as a parent of all the elements in the index repeating item.

Note. Any style declarations that an author wants to apply to all repeat items, including the index, must be done so by using both ::repeat-item and ::repeat-index selectors. Styles that are only applied to ::repeat-item will not automatically be applied to the respective ::repeat-index.


Syntax

element:repeat-index { style properties }

Examples

<html:table xforms:repeat-nodeset="...">
   <html:tr>
      <html:td><xforms:input ref="..."/><xforms:input ref="..."/></html:td>
   </html:tr>
</html:table>
html|tr::repeat-item { outline: medium solid; color:gray }
html|tr::repeat-index { outline: medium dashed; color:black }

Relative articles