Bug 1352775 - Revert "Bug 1352771 - Fix justify-content values. r=bholley"; r=manishearth draft
authorManish Goregaokar <manishearth@gmail.com>
Sat, 01 Apr 2017 19:56:52 -0700
changeset 554735 208baec7ffdfc50bb309ed8a4e184a096e40bdd2
parent 554734 768759fc0666a8c45710f61ed80a4195de138af5
child 622424 ba91d4795f54ef1bea5ad9cce47ec134cb378083
push id52037
push userbmo:manishearth@gmail.com
push dateSun, 02 Apr 2017 03:00:01 +0000
reviewersbholley, manishearth
bugs1352775, 1352771
milestone55.0a1
Bug 1352775 - Revert "Bug 1352771 - Fix justify-content values. r=bholley"; r=manishearth This reverts commit aa66bb144e3953f7439cb76a7d3eafbd8c7cadad. MozReview-Commit-ID: JsstyQPm8TU
servo/components/style/values/specified/align.rs
--- a/servo/components/style/values/specified/align.rs
+++ b/servo/components/style/values/specified/align.rs
@@ -353,19 +353,19 @@ fn parse_normal_or_baseline(input: &mut 
     }
 }
 
 // <content-distribution>
 fn parse_content_distribution(input: &mut Parser) -> Result<AlignFlags, ()> {
     let ident = input.expect_ident()?;
     match_ignore_ascii_case! { &ident,
       "stretch" => Ok(ALIGN_STRETCH),
-      "space-between" => Ok(ALIGN_SPACE_BETWEEN),
-      "space-around" => Ok(ALIGN_SPACE_AROUND),
-      "space-evenly" => Ok(ALIGN_SPACE_EVENLY),
+      "space_between" => Ok(ALIGN_SPACE_BETWEEN),
+      "space_around" => Ok(ALIGN_SPACE_AROUND),
+      "space_evenly" => Ok(ALIGN_SPACE_EVENLY),
       _ => Err(())
     }
 }
 
 // [ <overflow-position>? && <content-position> ]
 fn parse_overflow_content_position(input: &mut Parser) -> Result<AlignFlags, ()> {
     // <content-position> followed by optional <overflow-position>
     if let Ok(mut content) = input.try(|input| parse_content_position(input)) {