Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upIncorrect serialization of :not(*) #16017
Comments
|
I should note that |
|
And
|
|
cc @emilio |
|
I am working on this. Servo testcase for the first one:
|
|
I am not working on this anymore. The problem is the serialization at https://github.com/servo/servo/blob/master/components/selectors/parser.rs#L440 but I do not understand the data structures used. |
|
The problem is that the to_css function needs more context. It thinks it's serializing a selector at toplevel, but the rules are slightly different inside not(). And even at toplevel Servo is kinda buggy around selectors involving wildcards. See for example #16020 |
|
And this is really hard to debug because gdb does not work well with indirection and traits (but I am a beginner with it so I might have missed something) and all implementations for |
|
Hey @pyfisch! Thanks for your interest in working on this issue. It's now assigned to you! |
Fix serialization of namespace and universal selectors Fix #16017 Fix #16020 <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/16890) <!-- Reviewable:end -->
Fix serialization of namespace and universal selectors Fix #16017 Fix #16020 <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/16890) <!-- Reviewable:end -->
Fix servo#16017 Fix servo#16020
Fix serialization of namespace and universal selectors Fix #16017 Fix #16020 <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/16890) <!-- Reviewable:end -->
Fix serialization of namespace and universal selectors Fix #16017 Fix #16020 <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/16890) <!-- Reviewable:end -->
Testcase (in stylo; I'm not sure how to get at this in servo proper):
This alerts
:not()which is not a valid selector.