style: Add Gecko-only support for the deprecated SVG 1.1 writing-mode aliases. draft
authorCameron McCormack <cam@mcc.id.au>
Sun, 16 Apr 2017 22:06:32 +1000
changeset 563360 aa68bf9a47751f15b5bc5ba2cffab8059e91cf6d
parent 563359 2cfe01cac4ba295085ebfaaeb714026834b829ac
child 563361 84f52a983b3806eacc71745b87a55c3c201a4b94
push id54263
push userbmo:cam@mcc.id.au
push dateSun, 16 Apr 2017 12:18:03 +0000
milestone55.0a1
style: Add Gecko-only support for the deprecated SVG 1.1 writing-mode aliases.
servo/components/style/properties/longhand/inherited_box.mako.rs
--- a/servo/components/style/properties/longhand/inherited_box.mako.rs
+++ b/servo/components/style/properties/longhand/inherited_box.mako.rs
@@ -14,16 +14,19 @@
                          animation_type="normal",
                          spec="https://drafts.csswg.org/css-box/#propdef-visibility")}
 
 // CSS Writing Modes Level 3
 // https://drafts.csswg.org/css-writing-modes-3
 ${helpers.single_keyword("writing-mode",
                          "horizontal-tb vertical-rl vertical-lr",
                          extra_gecko_values="sideways-rl sideways-lr",
+                         extra_gecko_aliases="lr=horizontal-tb lr-tb=horizontal-tb \
+                                              rl=horizontal-tb rl-tb=horizontal-tb \
+                                              tb=vertical-rl   tb-rl=vertical-rl",
                          experimental=True,
                          need_clone=True,
                          animation_type="none",
                          spec="https://drafts.csswg.org/css-writing-modes/#propdef-writing-mode")}
 
 ${helpers.single_keyword("direction", "ltr rtl", need_clone=True, animation_type="none",
                          spec="https://drafts.csswg.org/css-writing-modes/#propdef-direction",
                          needs_conversion=True)}