-
-
Notifications
You must be signed in to change notification settings - Fork 10
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
Major changes for WeasyPrint #5
Conversation
This reverts commit 13895ee.
Main changes:
Fixes (both issues found by Acid2):
<style>
p .class { color: red }
.class p { color: blue }
</style>
<p class="class">
<p class="class">
This text was red and is now blue.
</p>
</p> I'm not really happy with this API, especially with what's returned by Selectors level 4 (in cssselect2) and Named pages (in WeasyPrint) are some of the next challenges 😉. @SimonSapin is that OK for you? |
Feel free to do whatever’s good for WeasyPrint with this repo :) Maybe even move into the WeasyPrint repository? You could still publish packages to PyPI separately if desired. (BTW I just gave you PyPI access.) I haven’t looked at the diffs, but based on your "main changes" description:
|
I'd like to see if anyone else is interested in cssselect2 before merging it into WeasyPrint.
I agree, I'll do that later.
Yes, I've added it because it was easier, I should remove it before the release (I think that the hard part is already done in WeasyPrint).
I think that having one matcher helps to keep the code simple in WeasyPrint for now.
Yes, because in |
No description provided.