I\'m using Zend Framework and DOMPDF library. When I test it with inline css everything works perfectly. But when I tried to move css code to the external file rules are not
@Jurian Sluiman is on the right track, though his answer did not help me, unfortunately.
I had to spend some time in order to find the solution that worked for me, which was using DOMPDF::set_protocol():
$dompdf->set_protocol(WWW_ROOT);
$dompdf->set_base_path('/');
WWW_ROOT here is a CakePHP constant pointing to the webroot folder of my application. Note that it has a trailing slash.
The best part is that this seems like improper usage of set_protocol(). But I'm fine with that as long as it makes the CSS work.
Hope this saves someone else few hours of time.