Skip to content
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

Fix serialization of namespace and universal selectors #16890

Merged
merged 2 commits into from May 17, 2017
Merged

Fix serialization of namespace and universal selectors #16890

merged 2 commits into from May 17, 2017

Conversation

@SimonSapin
Copy link
Member

SimonSapin commented May 16, 2017

Fix #16017
Fix #16020


This change is Reviewable

@highfive
Copy link

highfive commented May 16, 2017

Heads up! This PR modifies the following files:

  • @bholley: components/style/stylist.rs
  • @emilio: components/style/stylist.rs
@SimonSapin
Copy link
Member Author

SimonSapin commented May 16, 2017

r? @emilio

@highfive highfive assigned emilio and unassigned Manishearth May 16, 2017
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.

@emilio

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.

@SimonSapin

SimonSapin May 16, 2017

Author Member

Done (in a separate commit).

@SimonSapin
Copy link
Member Author

SimonSapin commented May 16, 2017

@bors-servo
Copy link
Contributor

bors-servo commented May 16, 2017

Trying commit 07f3854 with merge 77aa36f...

bors-servo added a commit that referenced this pull request May 16, 2017
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 -->
@emilio
emilio approved these changes May 16, 2017
Copy link
Member

emilio left a comment

r=me, with the Combinator bit either explained, or fixed.

self.inner.complex.iter_raw().all(|c| matches!(*c,
Component::ExplicitUniversalType |
Component::ExplicitAnyNamespace |
Component::Combinator(_)

This comment has been minimized.

@emilio

emilio May 16, 2017

Member

Does this really need combinators? When is that the case?

@emilio
Copy link
Member

emilio commented May 16, 2017

Also, presumably a Gecko try run would be nice :)

@SimonSapin
Copy link
Member Author

SimonSapin commented May 16, 2017

@bors-servo r=emilio

@bors-servo
Copy link
Contributor

bors-servo commented May 16, 2017

📌 Commit 685b9ef has been approved by emilio

@SimonSapin
Copy link
Member Author

SimonSapin commented May 16, 2017

https://treeherder.mozilla.org/#/jobs?repo=try&revision=a94e5188bdb08ab61b1bd4e8bb1fa6de4f5daf67

TEST-UNEXPECTED-FAIL | layout/style/test/test_namespace_rule.html | failures in this test - expected 16 failures but got 8 [log…]
TEST-UNEXPECTED-FAIL | layout/style/test/test_selectors.html | failure pattern `:not()` in this test - expected 8 failures but got 0 [log…]
TEST-UNEXPECTED-FAIL | layout/style/test/test_selectors.html | failure pattern `:not(html|)` in this test - expected 1 failures but got 0 [log…]
TEST-UNEXPECTED-FAIL | layout/style/test/test_selectors.html | failure pattern `reserialization of *|a` in this test - expected 6 failures but got 0 [log…]
TEST-UNEXPECTED-FAIL | layout/style/test/test_selectors.html | failure pattern `this_better_be_unvisited` in this test - expected 1 failures but got 0 [log…] 
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
 
@SimonSapin
Copy link
Member Author

SimonSapin commented May 16, 2017

@bors-servo p=2

so I can push expectation updates tonight.

@bors-servo
Copy link
Contributor

bors-servo commented May 16, 2017

Testing commit 685b9ef with merge 825a623...

bors-servo added a commit that referenced this pull request May 16, 2017
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
Copy link
Contributor

bors-servo commented May 16, 2017

💔 Test failed - mac-dev-unit

@emilio
Copy link
Member

emilio commented May 16, 2017

@bors-servo retry

  • mach package?
@emilio
Copy link
Member

emilio commented May 16, 2017

@bors-servo p=10

  • I want to land my pseudo stuff after this.
@bors-servo
Copy link
Contributor

bors-servo commented May 16, 2017

💔 Test failed - linux-rel-wpt

bors-servo added a commit that referenced this pull request May 16, 2017
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 -->
@jdm
Copy link
Member

jdm commented May 17, 2017

@bors-servo
Copy link
Contributor

bors-servo commented May 17, 2017

Testing commit 685b9ef with merge c962458...

bors-servo added a commit that referenced this pull request May 17, 2017
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
Copy link
Contributor

bors-servo commented May 17, 2017

☀️ Test successful - android, arm32, arm64, linux-dev, linux-rel-css, linux-rel-wpt, mac-dev-unit, mac-rel-css, mac-rel-wpt1, mac-rel-wpt2, windows-msvc-dev
Approved by: emilio
Pushing c962458 to master...

@bors-servo bors-servo merged commit 685b9ef into master May 17, 2017
3 of 4 checks passed
3 of 4 checks passed
dependency-ci Failed dependency checks
Details
continuous-integration/appveyor/pr AppVeyor build succeeded
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
homu Test successful
Details
@heycam
Copy link
Member

heycam commented May 17, 2017

@SimonSapin SimonSapin deleted the qname branch May 17, 2017
bors-servo added a commit that referenced this pull request May 17, 2017
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 -->
moz-v2v-gh pushed a commit to mozilla/gecko-dev that referenced this pull request May 17, 2017
--HG--
extra : rebase_source : afc2761104c692740d066d84f4cc207d4adbf0f0
bors-servo added a commit that referenced this pull request May 17, 2017
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 -->
aethanyc pushed a commit to aethanyc/gecko-dev that referenced this pull request May 17, 2017
…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
aethanyc pushed a commit to aethanyc/gecko-dev that referenced this pull request May 17, 2017
moz-v2v-gh pushed a commit to mozilla/gecko-dev that referenced this pull request May 17, 2017
…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
JerryShih pushed a commit to JerryShih/gecko-dev that referenced this pull request May 18, 2017
…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
JerryShih pushed a commit to JerryShih/gecko-dev that referenced this pull request May 18, 2017
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified-and-comments-removed that referenced this pull request Oct 1, 2019
UltraBlame original commit: 692a837347e3544cd7d1b86a63775ff5255caf7a
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified-and-comments-removed that referenced this pull request Oct 1, 2019
…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
gecko-dev-updater pushed a commit to marco-c/gecko-dev-comments-removed that referenced this pull request Oct 1, 2019
UltraBlame original commit: 692a837347e3544cd7d1b86a63775ff5255caf7a
gecko-dev-updater pushed a commit to marco-c/gecko-dev-comments-removed that referenced this pull request Oct 1, 2019
…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
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified that referenced this pull request Oct 1, 2019
UltraBlame original commit: 692a837347e3544cd7d1b86a63775ff5255caf7a
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified that referenced this pull request Oct 1, 2019
…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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

7 participants
You can’t perform that action at this time.