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 upFix serialization of namespace and universal selectors #16890
Conversation
highfive
commented
May 16, 2017
|
r? @emilio |
| if rule.selector.inner.complex.iter_raw().next().is_none() { | ||
| rules_list.push(rule.to_applicable_declaration_block(cascade_level)); | ||
| let mut iter = rule.selector.inner.complex.iter_raw(); | ||
| match iter.next() { |
This comment has been minimized.
This comment has been minimized.
emilio
May 16, 2017
Member
can you move it to a method in Selector? I'm also tweaking this code for the pseudo-element things. Also, it might look cleaner that way.
This comment has been minimized.
This comment has been minimized.
|
@bors-servo try |
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 -->
|
r=me, with the |
| self.inner.complex.iter_raw().all(|c| matches!(*c, | ||
| Component::ExplicitUniversalType | | ||
| Component::ExplicitAnyNamespace | | ||
| Component::Combinator(_) |
This comment has been minimized.
This comment has been minimized.
|
Also, presumably a Gecko try run would be nice :) |
|
@bors-servo r=emilio |
|
|
diff --git a/layout/style/test/stylo-failures.md b/layout/style/test/stylo-failures.md
index 991863bacf0d..8dc19a70c809 100644
--- a/layout/style/test/stylo-failures.md
+++ b/layout/style/test/stylo-failures.md
@@ -91,7 +91,7 @@ to mochitest command.
* ... `font-feature-settings`: bug 1355366 [10]
* test_font_face_parser.html `font-weight`: keyword values should be preserved in \@font-face [4]
* @namespace support:
- * test_namespace_rule.html: bug 1355715 [16]
+ * test_namespace_rule.html: bug 1355715 [8]
* test_dont_use_document_colors.html: support of disabling document color bug 1355716 [21]
* test_font_feature_values_parsing.html: \@font-feature-values support bug 1355721 [107]
* Grid support bug 1341802
@@ -144,11 +144,6 @@ to mochitest command.
* Incorrect serialization
* color value not canonicalized servo/servo#15397
* test_shorthand_property_getters.html `should condense to canonical case` [2]
- * :not(*) doesn't serialize properly servo/servo#16017
- * test_selectors.html `:not()` [8]
- * ... `:not(html|)` [1]
- * "*|a" gets serialized as "a" when it should not servo/servo#16020
- * test_selectors.html `reserialization of *|a` [6]
* place-{content,items,self} shorthands bug 1363971
* test_align_shorthand_serialization.html [6]
* system font serialization with subprop specified bug 1364286
@@ -193,7 +188,6 @@ to mochitest command.
* test_css_supports.html: issues around @supports syntax servo/servo#15482 [8]
* test_author_specified_style.html: support serializing color as author specified bug 1348165 [27]
* browser_newtab_share_rule_processors.js: agent style sheet sharing [1]
-* test_selectors.html `this_better_be_unvisited`: visited handling [1]
## Assertions
|
|
@bors-servo p=2 so I can push expectation updates tonight. |
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 -->
|
|
|
@bors-servo retry
|
|
@bors-servo p=10
|
|
|
Bug 1364850: Move PseudoElement to be just another combinator in selectors. r=bholley On top of #16890. <!-- 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/16900) <!-- Reviewable:end -->
|
@bors-servo: retry |
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 -->
|
|
|
I landed the expectation changes: https://hg.mozilla.org/integration/autoland/rev/692a837347e3544cd7d1b86a63775ff5255caf7a |
Bug 1364850: Move PseudoElement to be just another combinator in selectors. r=bholley On top of #16890. <!-- 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/16900) <!-- Reviewable:end -->
--HG-- extra : rebase_source : afc2761104c692740d066d84f4cc207d4adbf0f0
Bug 1364850: Move PseudoElement to be just another combinator in selectors. r=bholley On top of #16890. <!-- 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/16900) <!-- Reviewable:end -->
…her combinator in selectors. r=bholley (from emilio:pseudos); r=bholley On top of servo/servo#16890. Source-Repo: https://github.com/servo/servo Source-Revision: d8b7013fcddff79a9c879077e1a564d83201359c
…her combinator in selectors. r=bholley (from emilio:pseudos); r=bholley On top of servo/servo#16890. Source-Repo: https://github.com/servo/servo Source-Revision: d8b7013fcddff79a9c879077e1a564d83201359c --HG-- extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear extra : subtree_revision : 12c4ec9e73c7d9b747303a5629b20719db05f03a
…her combinator in selectors. r=bholley (from emilio:pseudos); r=bholley On top of servo/servo#16890. Source-Repo: https://github.com/servo/servo Source-Revision: d8b7013fcddff79a9c879077e1a564d83201359c
UltraBlame original commit: 692a837347e3544cd7d1b86a63775ff5255caf7a
…her combinator in selectors. r=bholley (from emilio:pseudos); r=bholley On top of servo/servo#16890. Source-Repo: https://github.com/servo/servo Source-Revision: d8b7013fcddff79a9c879077e1a564d83201359c UltraBlame original commit: a6a6ead43673799a3cdb1c008b47a646a7f816e2
UltraBlame original commit: 692a837347e3544cd7d1b86a63775ff5255caf7a
…her combinator in selectors. r=bholley (from emilio:pseudos); r=bholley On top of servo/servo#16890. Source-Repo: https://github.com/servo/servo Source-Revision: d8b7013fcddff79a9c879077e1a564d83201359c UltraBlame original commit: a6a6ead43673799a3cdb1c008b47a646a7f816e2
UltraBlame original commit: 692a837347e3544cd7d1b86a63775ff5255caf7a
…her combinator in selectors. r=bholley (from emilio:pseudos); r=bholley On top of servo/servo#16890. Source-Repo: https://github.com/servo/servo Source-Revision: d8b7013fcddff79a9c879077e1a564d83201359c UltraBlame original commit: a6a6ead43673799a3cdb1c008b47a646a7f816e2
SimonSapin commentedMay 16, 2017
•
edited by larsbergstrom
Fix #16017
Fix #16020
This change is