Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-53570

Styling table with tr:nth-child(odd) or tr:nth-child(even) will be not visible in PDF export.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Low Low
    • None
    • 5.10.7, 6.2.3, 6.4.0, 6.4.1
    • Page - Export / Import
    • None

      Summary

      Exporting page with styling of rows or columns with tr:nth-child(odd) or tr:nth-child(even) and td:nth-child(odd) or td:nth-child(even) will not be exported to the pdf.

      Steps to Reproduce

      1. In the Space Tools > Look and Feal > Stylesheet add bottom CSS:
        .confluenceTable td:nth-child(odd){ 
        color:black; 
        background:#D7CCC8; 
        border:white 2px solid; 
        }
        
        .confluenceTable td:nth-child(even){ 
        color:black; 
        background:#EFEBE9; 
        border:white 2px solid;
        }
        /* use bottom classes for styling rows
        .confluenceTable tr:nth-child(odd){ 
        color:black; 
        background:#D7CCC8; 
        border:white 2px solid; 
        }
        
        .confluenceTable tr:nth-child(even){ 
        color:black; 
        background:#EFEBE9; 
        border:white 2px solid;
        }
        */
        
      2. Create page with at-least 2x2 table.
      3. Publish page and observer change of colors.
      4. Export to PDF

      Expected Results

      Page will be exported with correct styling.

      Actual Results

      Styling will be removed

      640-Teststyletable-270917-0537-6.pdf

      Notes

      Behavior will affect even User Macros.

      Workaround

      There is no known workaround.

        1. 640-Teststyletable-270917-0537-6.pdf
          8 kB
        2. page.png
          page.png
          52 kB
        3. pdf.png
          pdf.png
          22 kB

              Unassigned Unassigned
              gpaunovic g
              Votes:
              6 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated: