-
Notifications
You must be signed in to change notification settings - Fork 236
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
Add support for the !important attribute #843
Conversation
Are you sure |
I think |
Looks good to me. |
Will try it. |
I just noticed this, though:
So I think I need to adapt the swapping condition a bit. Will do so a bit later. |
The condition should probably be:
Will adapt it and extend the test cases. |
Should be good now. |
Is this okay to merge? Not sure who to ping, @waywardmonkeys maybe? |
@LaurenzV Well, I think @RazrFalcon said it looks good, so I think I can approve it and you can merge it? |
It's Linebender policy to not merge without an approval. #843 (comment) is close enough to approval that I'm happy to formalise it, although I'll just give the actual change a quick scan. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Thanks! |
Incidentally, does the new swapping behaviour not break this? This injection is basically equivalent to a user agent/user stylesheet, right? |
Hmm, do you have an example? I don't think so though, otherwise the test cases wouldn't work. :D The swapping behavior also existed before, all I changed is that in case the original attribute in the injected stylesheet had |
Ooh, I see. That makes so much more sense. Because my intuition was that the user stylesheet would override the document, since that seems obviously correct. But that's not how the spec is written (the document overwriting the user agent makes sense of course, which I missed) |
This solves the problem I had where I wanted to achieve that I can override all styles in the SVG via stylesheet injection. I tested it with
rsvg-convert
and it works in the same way, so it would be great to have this merged. :)