This is still an issue (PD4ML Pro 3.8.0fx6), and it seems that the CSS parser doesn’t like to find “(” as part of an @media declaration; i.e.

@media (max-width: 899px) {

This produces the error:

<br /> org.w3c.css.sac.CSSException: Encountered "(" at line 882, column 8.<br /> Was expecting one of:<br /> <S> ...<br /> "not" ...<br /> "only" ...<br /> <IDENT> ...<br /> <br /> at com.steadystate.css.parser.SACParser.parseStyleSheet(SACParser.java:60)<br /> at org.zefer.html.doc.css.d.Ò00000(Unknown Source)<br /> at org.zefer.html.doc.css.c.o00000(Unknown Source)<br /> at org.zefer.html.doc.PD4MLHtmlParser.buildDocument(Unknown Source)<br /> at org.zefer.pd4ml.PD4ML.o00000(Unknown Source)<br /> at org.zefer.pd4ml.PD4ML.render(Unknown Source)<br /> at org.zefer.pd4ml.PD4ML.render(Unknown Source)<br />

I understand if the parser won’t include media queries, but it’d be nice if it could just ignore them, rather than throwing the exception and failing. As it is, you can’t use a CSS if it has media queries at all.