{"action":"created","issue":{"url":"https://api.github.com/repos/oxygenxml/dita-css/issues/11","labels_url":"https://api.github.com/repos/oxygenxml/dita-css/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/oxygenxml/dita-css/issues/11/comments","events_url":"https://api.github.com/repos/oxygenxml/dita-css/issues/11/events","html_url":"https://github.com/oxygenxml/dita-css/issues/11","id":118324326,"number":11,"title":"even-odd table row colors don't work with spanned rows","user":{"login":"markgif","id":1888084,"avatar_url":"https://avatars.githubusercontent.com/u/1888084?v=3","gravatar_id":"","url":"https://api.github.com/users/markgif","html_url":"https://github.com/markgif","followers_url":"https://api.github.com/users/markgif/followers","following_url":"https://api.github.com/users/markgif/following{/other_user}","gists_url":"https://api.github.com/users/markgif/gists{/gist_id}","starred_url":"https://api.github.com/users/markgif/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markgif/subscriptions","organizations_url":"https://api.github.com/users/markgif/orgs","repos_url":"https://api.github.com/users/markgif/repos","events_url":"https://api.github.com/users/markgif/events{/privacy}","received_events_url":"https://api.github.com/users/markgif/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-23T05:59:13Z","updated_at":"2015-11-23T12:49:46Z","closed_at":null,"body":"I'm using Antenna House. I'm creating even-odd alternate-colored table rows by using ordinary nth-child CSS like this:\r\n\r\n    *[class~=\"topic/row\"]:nth-child(even){ background: #DDEEFF; }\r\n\r\nThis works in the PDF. And row and columns spans work because of the fix in issue #10.\r\n\r\nBut when I combine table spans with even-odd CSS table row colors, the rows are rendered wrong. The colored row goes all the way across the row, without respecting the spanned rows. See dita-test.pdf.\r\n\r\n[dita-test.pdf](https://github.com/oxygenxml/dita-css/files/41307/dita-test.pdf)\r\n\r\nBut Antenna House does this correctly with HTML/CSS to PDF. See html-test.pdf.\r\n\r\n[html-test.pdf](https://github.com/oxygenxml/dita-css/files/41308/html-test.pdf)\r\n\r\nAny ideas?\r\n\r\nI'm wondering if all this would be easier if I were using CSS on HTML instead of DITA XML.\r\n\r\nThanks,\r\nMark"},"comment":{"url":"https://api.github.com/repos/oxygenxml/dita-css/issues/comments/158925366","html_url":"https://github.com/oxygenxml/dita-css/issues/11#issuecomment-158925366","issue_url":"https://api.github.com/repos/oxygenxml/dita-css/issues/11","id":158925366,"user":{"login":"dan-caprioara","id":8750138,"avatar_url":"https://avatars.githubusercontent.com/u/8750138?v=3","gravatar_id":"","url":"https://api.github.com/users/dan-caprioara","html_url":"https://github.com/dan-caprioara","followers_url":"https://api.github.com/users/dan-caprioara/followers","following_url":"https://api.github.com/users/dan-caprioara/following{/other_user}","gists_url":"https://api.github.com/users/dan-caprioara/gists{/gist_id}","starred_url":"https://api.github.com/users/dan-caprioara/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dan-caprioara/subscriptions","organizations_url":"https://api.github.com/users/dan-caprioara/orgs","repos_url":"https://api.github.com/users/dan-caprioara/repos","events_url":"https://api.github.com/users/dan-caprioara/events{/privacy}","received_events_url":"https://api.github.com/users/dan-caprioara/received_events","type":"User","site_admin":false},"created_at":"2015-11-23T12:49:46Z","updated_at":"2015-11-23T12:49:46Z","body":"Your selector works fine for me. I put it in the \"-colors.css\" file, and then transformed with Prince and Antenna House:\r\n\r\n[even-odd.pdf](https://github.com/oxygenxml/dita-css/files/41551/even-odd.pdf)\r\n\r\nI recommend using *background-color* instead of *background* if you intend to see the effect in the editor. (oXygen does not expand the *background* shorthand)\r\n\r\nThe topic was:\r\n\r\n<?xml version='1.0' encoding='UTF-8'?>\r\n<!DOCTYPE topic PUBLIC \"-//OASIS//DTD DITA Topic//EN\" \"http://docs.oasis-open.org/dita/v1.1/OS/dtd/topic.dtd\"\r\n>\r\n<topic id=\"introduction\">\r\n    <title>Even/Odd Coloring in Tables</title>\r\n    <body>\r\n    <p>\r\n      <table frame=\"all\" rowsep=\"1\" colsep=\"1\" id=\"table_ykp_yjl_c5\">\r\n        <title>MyTable</title>\r\n        <tgroup cols=\"3\">\r\n          <colspec colname=\"c1\" colnum=\"1\" colwidth=\"1.0*\"/>\r\n          <colspec colname=\"c2\" colnum=\"2\" colwidth=\"1.0*\"/>\r\n          <colspec colname=\"newCol3\" colnum=\"3\" colwidth=\"1*\"/>\r\n          <thead>\r\n            <row>\r\n              <entry/>\r\n              <entry>2</entry>\r\n              <entry>3</entry>\r\n            </row>\r\n          </thead>\r\n          <tbody>\r\n            <row>\r\n              <entry>1</entry>\r\n              <entry>2</entry>\r\n              <entry/>\r\n            </row>\r\n            <row>\r\n              <entry morerows=\"1\">Spans down</entry>\r\n              <entry>2</entry>\r\n              <entry/>\r\n            </row>\r\n            <row>\r\n              <entry>2</entry>\r\n              <entry/>\r\n            </row>\r\n            <row>\r\n              <entry>1</entry>\r\n              <entry>2</entry>\r\n              <entry/>\r\n            </row>\r\n            <row>\r\n              <entry morerows=\"1\">Spans down</entry>\r\n              <entry>2</entry>\r\n              <entry/>\r\n            </row>\r\n            <row>\r\n              <entry>2</entry>\r\n              <entry/>\r\n            </row>\r\n            <row>\r\n              <entry>1</entry>\r\n              <entry>2</entry>\r\n              <entry/>\r\n            </row>\r\n            <row>\r\n              <entry>1</entry>\r\n              <entry>2</entry>\r\n              <entry/>\r\n            </row>\r\n            <row>\r\n              <entry morerows=\"1\">Spans down</entry>\r\n              <entry>2</entry>\r\n              <entry/>\r\n            </row>\r\n            <row>\r\n              <entry>2</entry>\r\n              <entry/>\r\n            </row>\r\n            <row>\r\n              <entry>1</entry>\r\n              <entry>2</entry>\r\n              <entry/>\r\n            </row>\r\n            <row>\r\n              <entry>1</entry>\r\n              <entry>2</entry>\r\n              <entry/>\r\n            </row>\r\n            <row>\r\n              <entry>1</entry>\r\n              <entry morerows=\"1\">Spans down</entry>\r\n              <entry/>\r\n            </row>\r\n            <row>\r\n              <entry>1</entry>\r\n              <entry/>\r\n            </row>\r\n            <row>\r\n              <entry>1</entry>\r\n              <entry/>\r\n              <entry/>\r\n            </row>\r\n            <row>\r\n              <entry>1</entry>\r\n              <entry morerows=\"1\">Spans down</entry>\r\n              <entry/>\r\n            </row>\r\n            <row>\r\n              <entry>1</entry>\r\n              <entry/>\r\n            </row>\r\n            <row>\r\n              <entry>1</entry>\r\n              <entry/>\r\n              <entry/>\r\n            </row>\r\n            <row>\r\n              <entry>1</entry>\r\n              <entry>2</entry>\r\n              <entry/>\r\n            </row>\r\n            <row>\r\n              <entry>1</entry>\r\n              <entry>2</entry>\r\n              <entry/>\r\n            </row>\r\n            <row>\r\n              <entry>1</entry>\r\n              <entry>2</entry>\r\n              <entry/>\r\n            </row>\r\n            <row>\r\n              <entry>1</entry>\r\n              <entry>2</entry>\r\n              <entry/>\r\n            </row>\r\n          </tbody>\r\n        </tgroup>\r\n      </table>\r\n    </p>\r\n  </body>\r\n</topic>\r\n\r\n"}}