Skip to content

Commit 5551a5f

Browse files
graoutsmoz-wptsync-bot
authored andcommitted
Bug 1697034 [wpt PR 27934] - Ensure border-width interpolation test does not yield float values, a=testonly
Automatic update from web-platform-tests Ensure border-width interpolation test does not yield float values How border-width values should be rounded in the computed style is an open discussion, per [csswg-drafts issue #5120](w3c/csswg-drafts#5210). This test should not be about testing that behavior but rather whether values are interpolated correctly when `initial` or `unset` is used as a "from" value. To do this we change the "to" value to always have integer values at the tested offsets. -- wpt-commits: 7e343597a6abe5601ebd686ba34ffba3dc95d3cf wpt-pr: 27934
1 parent 2613b04 commit 5551a5f

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

testing/web-platform/tests/css/css-backgrounds/animations/border-width-interpolation.html

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -68,14 +68,14 @@
6868
test_interpolation({
6969
property: 'border-left-width',
7070
from: 'initial',
71-
to: '20px',
71+
to: '23px',
7272
}, [
7373
{at: -0.3, expect: '0px'},
7474
{at: 0, expect: '3px'},
75-
{at: 0.3, expect: '8.1px'},
76-
{at: 0.6, expect: '13.2px'},
77-
{at: 1, expect: '20px'},
78-
{at: 1.5, expect: '28.5px'},
75+
{at: 0.3, expect: '9px'},
76+
{at: 0.6, expect: '15px'},
77+
{at: 1, expect: '23px'},
78+
{at: 1.5, expect: '33px'},
7979
]);
8080

8181
test_interpolation({
@@ -94,14 +94,14 @@
9494
test_interpolation({
9595
property: 'border-left-width',
9696
from: 'unset',
97-
to: '20px',
97+
to: '23px',
9898
}, [
9999
{at: -0.3, expect: '0px'},
100100
{at: 0, expect: '3px'},
101-
{at: 0.3, expect: '8.1px'},
102-
{at: 0.6, expect: '13.2px'},
103-
{at: 1, expect: '20px'},
104-
{at: 1.5, expect: '28.5px'},
101+
{at: 0.3, expect: '9px'},
102+
{at: 0.6, expect: '15px'},
103+
{at: 1, expect: '23px'},
104+
{at: 1.5, expect: '33px'},
105105
]);
106106

107107
test_interpolation({

0 commit comments

Comments
 (0)