Created attachment 11687 [details] ePub document with child and descendant selectors Tor, the attached ePub document contains the following code: <div id="leftaligned-title" class="section level2 part"> <h2>Left–aligned title</h2> <div id="centered-title" class="section level3"> <h3>Centered title</h3> </div> </div> <div id="leftaligned-title-1" class="section level2 mark"> <h2>Left–aligned title</h2> <div id="centered-title-1" class="section level3"> <h3>Centered title</h3> </div> </div> The child selector (http://www.w3.org/TR/CSS2/selector.html#child-selectors) doesn’t work: .mark > .level3 > h3 Althought the descendant selector is working: .part .level3 h3 Could you implement this? Many thanks for your help, Pablo
Created attachment 11688 [details] display selectors (mupdf vs. ebook-viewer) mupdf-x11 display on the left and ebook-viewer (from calibre-2.28) on the right. Centered titles should be centered.
Should be fixed in: commit 02cc7931ef0f04218bd50b3e0e396a6dcb009962 Author: Tor Andersson <tor.andersson@artifex.com> Date: Tue May 19 17:14:28 2015 +0200 epub: Parse CSS combinators left-associatively. Fixes bug 695994 where multiple child selectors would not match properly. The "a > b > c" rule should be interpreted as ((a > b) > c) in order to match properly.
Tor, child selectors work fine now. Many thanks for the fix, Pablo