Auto merge of #11127 - heycam:text-align, r=bholley

Support text-align in geckolib.

We don't yet support the 'unsafe' keyword, which isn't in a spec yet, and which would require slightly more complex parsing.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11127)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2016-05-11 22:53:56 -07:00
commit f12869d2a7
3 changed files with 17 additions and 1 deletions

View file

@ -136,9 +136,16 @@
right("right") => 3,
center("center") => 4,
justify("justify") => 5,
% if product == "servo":
servo_center("-servo-center") => 6,
servo_left("-servo-left") => 7,
servo_right("-servo-right") => 8,
% else:
_moz_center("-moz-center") => 6,
_moz_left("-moz-left") => 7,
_moz_right("-moz-right") => 8,
match_parent("match-parent") => 9,
% endif
}
}
#[inline] pub fn get_initial_value() -> computed_value::T {