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
implement the all shorthand #16413
implement the all shorthand #16413
Conversation
Heads up! This PR modifies the following files:
|
@bors-servo r=emilio (Reviewed in the Gecko bug.) |
📌 Commit e983eab has been approved by |
@bors-servo p=1 (Bumping this so I'll be around to land the corresponding Gecko bug.) |
implement the all shorthand From https://bugzilla.mozilla.org/show_bug.cgi?id=1356125. <!-- 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/16413) <!-- Reviewable:end -->
💔 Test failed - windows-msvc-dev |
@bors-servo r=emilio |
📌 Commit 56ab106 has been approved by |
implement the all shorthand From https://bugzilla.mozilla.org/show_bug.cgi?id=1356125. <!-- 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/16413) <!-- Reviewable:end -->
💔 Test failed - windows-msvc-dev |
⌛ Testing commit 081da2a with merge 2afd5a58c703a9544127d98a8dd69001533a794d... |
💔 Test failed - windows-msvc-dev |
☔ The latest upstream changes (presumably #16421) made this pull request unmergeable. Please resolve the merge conflicts. |
r? @emilio (The bindings update has a conflict but I'll update that later.) |
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.
r=me with that, thanks!
@@ -868,8 +916,10 @@ impl PropertyId { | |||
/// Includes shorthands before expansion | |||
pub enum ParsedDeclaration { | |||
% for shorthand in data.shorthands: | |||
% if shorthand.name != "all": |
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.
Leave a comment here to say why this is done?
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.
Also, use shorthands_except_all
?
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.
This and the other one can't use shorthands_except_all
since it only surrounds part of the for loop body.
@@ -910,6 +960,7 @@ impl ParsedDeclaration { | |||
overwrite_more_important: bool) -> bool { | |||
match self { | |||
% for shorthand in data.shorthands: | |||
% if shorthand.name != "all": |
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.
shorthands_except_all
?
if input.seen_var_functions() { | ||
input.reset(start); | ||
let (first_token_type, css) = try!( | ||
::custom_properties::parse_non_custom_with_var(input)); |
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.
It'd be nice to share this, somehow... But I guess it's not a huge deal. Please add a comment in the relevant code pointing to this one so we can remember if we need to update it.
@bors-servo r=emilio |
📌 Commit c488e71 has been approved by |
implement the all shorthand From https://bugzilla.mozilla.org/show_bug.cgi?id=1356125. <!-- 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/16413) <!-- Reviewable:end -->
☀️ 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 |
From https://bugzilla.mozilla.org/show_bug.cgi?id=1356125.
This change is