mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-22 08:27:31 +09:00
Issue #2751 - Use rounded interpolation value when interpolating the Integer type and Font stretch type, per spec.
Resolves #2751
This commit is contained in:
parent
9c69a34da4
commit
321b75a391
2 changed files with 12 additions and 9 deletions
|
|
@ -1809,7 +1809,7 @@ function test_integer_transition(prop) {
|
|||
"integer-valued property " + prop + ": computed value before transition");
|
||||
div.style.setProperty("transition-property", prop, "");
|
||||
div.style.setProperty(prop, "-14", "");
|
||||
is(cs.getPropertyValue(prop), "-1",
|
||||
is(cs.getPropertyValue(prop), "0",
|
||||
"integer-valued property " + prop + ": interpolation of integers");
|
||||
check_distance(prop, "6", "1", "-14");
|
||||
|
||||
|
|
@ -1853,7 +1853,7 @@ function test_font_stretch(prop) {
|
|||
"font-stretch property " + prop + ": computed value before transition");
|
||||
div.style.setProperty("transition-property", prop, "");
|
||||
div.style.setProperty(prop, "extra-condensed", "");
|
||||
is(cs.getPropertyValue(prop), "normal",
|
||||
is(cs.getPropertyValue(prop), "semi-expanded",
|
||||
"font-stretch property " + prop + ": interpolation of font-stretches");
|
||||
check_distance(prop, "expanded", "semi-expanded", "condensed");
|
||||
|
||||
|
|
@ -1934,7 +1934,7 @@ function test_pos_integer_or_auto_transition(prop) {
|
|||
"integer-valued property " + prop + ": computed value before transition");
|
||||
div.style.setProperty("transition-property", prop, "");
|
||||
div.style.setProperty(prop, "11", "");
|
||||
is(cs.getPropertyValue(prop), "5",
|
||||
is(cs.getPropertyValue(prop), "6",
|
||||
"integer-valued property " + prop + ": interpolation of integers");
|
||||
check_distance(prop, "4", "6", "12");
|
||||
div.style.setProperty(prop, "auto", "");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue