Forum Bugs

:checked psuedo selector does not work

jeric
Hi,

It seems the :checked pseudo selector does not work in prince. I have created a simplified test case in jsfiddle:

https://jsfiddle.net/92ge9m8x/2/

The expected output is a checkbox with "SUCCESS" text and a green background color on the label. However the pdf gives "FAILED" as output and a red background-color.
(also the layout of the checkbox is quite different than in browsers, but this is currently not a problem for us).

The use-case for this is that we use prince to convert filled-in html forms to PDF. The form inputs are all pre-selected.

Kind regards,

Eric
mikeday
The :checked selector is not supported yet, but you can use an attribute selector:
[checked] { ... }