mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-12 21:05:36 +00:00
Bug 1131994 - Part 2: Fix logical axis and offset property computed value lookup in tests. r=dbaron
This commit is contained in:
parent
972516292a
commit
f701da6ef7
@ -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-");
|
||||||
|
Loading…
Reference in New Issue
Block a user