-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
media queries are removed #13
Comments
Quick fix patch:
Obviously this doesn't try to parse the CSS itself, but this is probably an acceptable workaround for now. |
I like the approach you have taken here but I think we should look at applying this more generically so that any css that cannot be inlined will be left alone in a style element. |
What would be helpful here is building up tests for each of these cases where the css cannot be inlined. I can write the tests but I am not aware of everything that can and can't be applied inline. I plan to research the specification further when I have time but as I'm not sure when that will be feel free to submit test cases or even a list of css declarations to test for. |
@rennat any updates on this? Happy to contribute if needed. Better support for media queries in pynliner would be grand. |
Nope. I've started, very slowly, on a complete refactor to address some of the reported issues so far (mainly the speed and limited support for templating languages without breaking the current API/tests) but I have not done anything with the current codebase related to this issue. I'll happily check out pull requests for it tho! |
+1 to merge the PR #38 Is this project abandoned? No commits since 2014, happy to help maintain if you need someone. |
not abandoned yet :) just maintained by busy people :( |
#38 does look good |
Given the following sample code:
I would expect the default border rule to be applied, and the media query hunk to be left alone (since it will only be parsed and used on compatible devices).
As a potential quick fix, pynliner could exclude processing of style or link blocks that have media query-like syntax, or are present and not screen.
The text was updated successfully, but these errors were encountered: