Bug 1131994 - Part 2: Fix logical axis and offset property computed value lookup in tests. r=dbaron

This commit is contained in:
Cameron McCormack 2015-02-17 11:36:36 +11:00
parent 972516292a
commit f701da6ef7

View File

@ -4568,7 +4568,7 @@ function logical_axis_prop_get_computed(cs, property)
throw "unexpected writing mode " + writingMode; throw "unexpected writing mode " + writingMode;
} }
return prop; return cs.getPropertyValue(prop);
} }
function logical_box_prop_get_computed(cs, property) function logical_box_prop_get_computed(cs, property)
@ -4645,7 +4645,7 @@ function logical_box_prop_get_computed(cs, property)
} else if (/^offset-(block|inline)-(start|end)/.test(property)) { } else if (/^offset-(block|inline)-(start|end)/.test(property)) {
property = property.substring(7); // we want "top" not "offset-top", e.g. property = property.substring(7); // we want "top" not "offset-top", e.g.
property = physicalize(property, blockMapping, "block-"); property = physicalize(property, blockMapping, "block-");
property = physicalize(property, blockMapping, "inline-"); property = physicalize(property, inlineMapping, "inline-");
} else if (/-(block|inline)-(start|end)/.test(property)) { } else if (/-(block|inline)-(start|end)/.test(property)) {
property = physicalize(property, blockMapping, "block-"); property = physicalize(property, blockMapping, "block-");
property = physicalize(property, inlineMapping, "inline-"); property = physicalize(property, inlineMapping, "inline-");