BCcampus / pressbooks-textbook

A plugin that extends Pressbooks for textbook authoring
GNU General Public License v2.0
25 stars 13 forks source link

bcc-box respresentation in mPDF output #29

Closed ghost closed 9 years ago

ghost commented 9 years ago

div class="bcc-box bcc-success" div class="bcc-box bcc-info"

Aforementioned code is displayed correctly in webpage output web_kt and ePUB export epub_kt

However, mPDF output looses CSS in Title mpdf_kt

Is this a limitation of mPDF that will display correctly using PRINCE?

Thanks, Steve

bdolor commented 9 years ago

This is, unfortunately, a limitation of the CSS that is currently supported in mPDF. This particular styling relies on the use of a pseudo selector h3:first-child which isn't supported in mPDF.

http://mpdf1.com/manual/index.php?tid=34

ghost commented 9 years ago

Thanks Brad,

Do you happen to know if this is supported in PRINCE?

Cheers, Steve

On Jul 13, 2015, at 12:46 PM, Brad notifications@github.com wrote:

This is, unfortunately, a limitation of the CSS that is currently supported in mPDF. This particular styling relies on the use of a pseudo selector h3:first-child which isn't supported in mPDF.

http://mpdf1.com/manual/index.php?tid=34 http://mpdf1.com/manual/index.php?tid=34 — Reply to this email directly or view it on GitHub https://github.com/BCcampus/pressbooks-textbook/issues/29#issuecomment-121020201.

bdolor commented 9 years ago

yes, it is supported: http://www.princexml.com/doc/selectors/