Bug 1352771 - Fix justify-content values. r=bholley
authorHiroyuki Ikezoe <hikezoe@mozilla.com>
Sun, 02 Apr 2017 11:06:23 +0900
changeset 554732 7f3311ae2d4e65fb110ffca1013a84be04d40ed4
parent 554731 13c98d5a8755c283aee8bd851a5151e28f3524b3
child 554733 ac9530e359b3890dbb69e1e479cdbacdcdd85105
push id52037
push userbmo:manishearth@gmail.com
push dateSun, 02 Apr 2017 03:00:01 +0000
reviewersbholley
bugs1352771
milestone55.0a1
Bug 1352771 - Fix justify-content values. r=bholley MozReview-Commit-ID: L4HFHTettLB
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)) {