wpt / css / css-box / animation / padding-interpolation.html

Status: FAIL | Duration: 458ms | Subtests: 108/144 | Open test on wpt.live | wpt.fyi

Data from commit:
a50cb89 wpt: run reference-named files which are themselves tests (#836) (2026-09-03)

SubtestStatusMessage
CSS Transitions: property <padding> from neutral to [20px] at (-0.3) should be [7px]PASS
CSS Transitions: property <padding> from neutral to [20px] at (0) should be [10px]PASS
CSS Transitions: property <padding> from neutral to [20px] at (0.3) should be [13px]PASS
CSS Transitions: property <padding> from neutral to [20px] at (0.6) should be [16px]PASS
CSS Transitions: property <padding> from neutral to [20px] at (1) should be [20px]PASS
CSS Transitions: property <padding> from neutral to [20px] at (1.5) should be [25px]PASS
CSS Transitions with transition: all: property <padding> from neutral to [20px] at (-0.3) should be [7px]PASS
CSS Transitions with transition: all: property <padding> from neutral to [20px] at (0) should be [10px]PASS
CSS Transitions with transition: all: property <padding> from neutral to [20px] at (0.3) should be [13px]PASS
CSS Transitions with transition: all: property <padding> from neutral to [20px] at (0.6) should be [16px]PASS
CSS Transitions with transition: all: property <padding> from neutral to [20px] at (1) should be [20px]PASS
CSS Transitions with transition: all: property <padding> from neutral to [20px] at (1.5) should be [25px]PASS
CSS Animations: property <padding> from neutral to [20px] at (-0.3) should be [7px]PASS
CSS Animations: property <padding> from neutral to [20px] at (0) should be [10px]PASS
CSS Animations: property <padding> from neutral to [20px] at (0.3) should be [13px]PASS
CSS Animations: property <padding> from neutral to [20px] at (0.6) should be [16px]PASS
CSS Animations: property <padding> from neutral to [20px] at (1) should be [20px]PASS
CSS Animations: property <padding> from neutral to [20px] at (1.5) should be [25px]PASS
Web Animations: property <padding> from neutral to [20px] at (-0.3) should be [7px]FAILassert_true: Web Animations should be supported expected true got false
Web Animations: property <padding> from neutral to [20px] at (0) should be [10px]FAILassert_true: Web Animations should be supported expected true got false
Web Animations: property <padding> from neutral to [20px] at (0.3) should be [13px]FAILassert_true: Web Animations should be supported expected true got false
Web Animations: property <padding> from neutral to [20px] at (0.6) should be [16px]FAILassert_true: Web Animations should be supported expected true got false
Web Animations: property <padding> from neutral to [20px] at (1) should be [20px]FAILassert_true: Web Animations should be supported expected true got false
Web Animations: property <padding> from neutral to [20px] at (1.5) should be [25px]FAILassert_true: Web Animations should be supported expected true got false
CSS Transitions: property <padding> from [initial] to [20px] at (-0.3) should be [0px]PASS
CSS Transitions: property <padding> from [initial] to [20px] at (0) should be [0px]PASS
CSS Transitions: property <padding> from [initial] to [20px] at (0.3) should be [6px]PASS
CSS Transitions: property <padding> from [initial] to [20px] at (0.6) should be [12px]PASS
CSS Transitions: property <padding> from [initial] to [20px] at (1) should be [20px]PASS
CSS Transitions: property <padding> from [initial] to [20px] at (1.5) should be [30px]PASS
CSS Transitions with transition: all: property <padding> from [initial] to [20px] at (-0.3) should be [0px]PASS
CSS Transitions with transition: all: property <padding> from [initial] to [20px] at (0) should be [0px]PASS
CSS Transitions with transition: all: property <padding> from [initial] to [20px] at (0.3) should be [6px]PASS
CSS Transitions with transition: all: property <padding> from [initial] to [20px] at (0.6) should be [12px]PASS
CSS Transitions with transition: all: property <padding> from [initial] to [20px] at (1) should be [20px]PASS
CSS Transitions with transition: all: property <padding> from [initial] to [20px] at (1.5) should be [30px]PASS
CSS Animations: property <padding> from [initial] to [20px] at (-0.3) should be [0px]PASS
CSS Animations: property <padding> from [initial] to [20px] at (0) should be [0px]PASS
CSS Animations: property <padding> from [initial] to [20px] at (0.3) should be [6px]PASS
CSS Animations: property <padding> from [initial] to [20px] at (0.6) should be [12px]PASS
CSS Animations: property <padding> from [initial] to [20px] at (1) should be [20px]PASS
CSS Animations: property <padding> from [initial] to [20px] at (1.5) should be [30px]PASS
Web Animations: property <padding> from [initial] to [20px] at (-0.3) should be [0px]FAILassert_true: Web Animations should be supported expected true got false
Web Animations: property <padding> from [initial] to [20px] at (0) should be [0px]FAILassert_true: Web Animations should be supported expected true got false
Web Animations: property <padding> from [initial] to [20px] at (0.3) should be [6px]FAILassert_true: Web Animations should be supported expected true got false
Web Animations: property <padding> from [initial] to [20px] at (0.6) should be [12px]FAILassert_true: Web Animations should be supported expected true got false
Web Animations: property <padding> from [initial] to [20px] at (1) should be [20px]FAILassert_true: Web Animations should be supported expected true got false
Web Animations: property <padding> from [initial] to [20px] at (1.5) should be [30px]FAILassert_true: Web Animations should be supported expected true got false
CSS Transitions: property <padding> from [inherit] to [20px] at (-0.3) should be [33px]PASS
CSS Transitions: property <padding> from [inherit] to [20px] at (0) should be [30px]PASS
CSS Transitions: property <padding> from [inherit] to [20px] at (0.3) should be [27px]PASS
CSS Transitions: property <padding> from [inherit] to [20px] at (0.6) should be [24px]PASS
CSS Transitions: property <padding> from [inherit] to [20px] at (1) should be [20px]PASS
CSS Transitions: property <padding> from [inherit] to [20px] at (1.5) should be [15px]PASS
CSS Transitions with transition: all: property <padding> from [inherit] to [20px] at (-0.3) should be [33px]PASS
CSS Transitions with transition: all: property <padding> from [inherit] to [20px] at (0) should be [30px]PASS
CSS Transitions with transition: all: property <padding> from [inherit] to [20px] at (0.3) should be [27px]PASS
CSS Transitions with transition: all: property <padding> from [inherit] to [20px] at (0.6) should be [24px]PASS
CSS Transitions with transition: all: property <padding> from [inherit] to [20px] at (1) should be [20px]PASS
CSS Transitions with transition: all: property <padding> from [inherit] to [20px] at (1.5) should be [15px]PASS
CSS Animations: property <padding> from [inherit] to [20px] at (-0.3) should be [33px]PASS
CSS Animations: property <padding> from [inherit] to [20px] at (0) should be [30px]PASS
CSS Animations: property <padding> from [inherit] to [20px] at (0.3) should be [27px]PASS
CSS Animations: property <padding> from [inherit] to [20px] at (0.6) should be [24px]PASS
CSS Animations: property <padding> from [inherit] to [20px] at (1) should be [20px]PASS
CSS Animations: property <padding> from [inherit] to [20px] at (1.5) should be [15px]PASS
Web Animations: property <padding> from [inherit] to [20px] at (-0.3) should be [33px]FAILassert_true: Web Animations should be supported expected true got false
Web Animations: property <padding> from [inherit] to [20px] at (0) should be [30px]FAILassert_true: Web Animations should be supported expected true got false
Web Animations: property <padding> from [inherit] to [20px] at (0.3) should be [27px]FAILassert_true: Web Animations should be supported expected true got false
Web Animations: property <padding> from [inherit] to [20px] at (0.6) should be [24px]FAILassert_true: Web Animations should be supported expected true got false
Web Animations: property <padding> from [inherit] to [20px] at (1) should be [20px]FAILassert_true: Web Animations should be supported expected true got false
Web Animations: property <padding> from [inherit] to [20px] at (1.5) should be [15px]FAILassert_true: Web Animations should be supported expected true got false
CSS Transitions: property <padding> from [unset] to [20px] at (-0.3) should be [0px]PASS
CSS Transitions: property <padding> from [unset] to [20px] at (0) should be [0px]PASS
CSS Transitions: property <padding> from [unset] to [20px] at (0.3) should be [6px]PASS
CSS Transitions: property <padding> from [unset] to [20px] at (0.6) should be [12px]PASS
CSS Transitions: property <padding> from [unset] to [20px] at (1) should be [20px]PASS
CSS Transitions: property <padding> from [unset] to [20px] at (1.5) should be [30px]PASS
CSS Transitions with transition: all: property <padding> from [unset] to [20px] at (-0.3) should be [0px]PASS
CSS Transitions with transition: all: property <padding> from [unset] to [20px] at (0) should be [0px]PASS
CSS Transitions with transition: all: property <padding> from [unset] to [20px] at (0.3) should be [6px]PASS
CSS Transitions with transition: all: property <padding> from [unset] to [20px] at (0.6) should be [12px]PASS
CSS Transitions with transition: all: property <padding> from [unset] to [20px] at (1) should be [20px]PASS
CSS Transitions with transition: all: property <padding> from [unset] to [20px] at (1.5) should be [30px]PASS
CSS Animations: property <padding> from [unset] to [20px] at (-0.3) should be [0px]PASS
CSS Animations: property <padding> from [unset] to [20px] at (0) should be [0px]PASS
CSS Animations: property <padding> from [unset] to [20px] at (0.3) should be [6px]PASS
CSS Animations: property <padding> from [unset] to [20px] at (0.6) should be [12px]PASS
CSS Animations: property <padding> from [unset] to [20px] at (1) should be [20px]PASS
CSS Animations: property <padding> from [unset] to [20px] at (1.5) should be [30px]PASS
Web Animations: property <padding> from [unset] to [20px] at (-0.3) should be [0px]FAILassert_true: Web Animations should be supported expected true got false
Web Animations: property <padding> from [unset] to [20px] at (0) should be [0px]FAILassert_true: Web Animations should be supported expected true got false
Web Animations: property <padding> from [unset] to [20px] at (0.3) should be [6px]FAILassert_true: Web Animations should be supported expected true got false
Web Animations: property <padding> from [unset] to [20px] at (0.6) should be [12px]FAILassert_true: Web Animations should be supported expected true got false
Web Animations: property <padding> from [unset] to [20px] at (1) should be [20px]FAILassert_true: Web Animations should be supported expected true got false
Web Animations: property <padding> from [unset] to [20px] at (1.5) should be [30px]FAILassert_true: Web Animations should be supported expected true got false
CSS Transitions: property <padding> from [0px] to [10px] at (-0.3) should be [0px]PASS
CSS Transitions: property <padding> from [0px] to [10px] at (0) should be [0px]PASS
CSS Transitions: property <padding> from [0px] to [10px] at (0.3) should be [3px]PASS
CSS Transitions: property <padding> from [0px] to [10px] at (0.6) should be [6px]PASS
CSS Transitions: property <padding> from [0px] to [10px] at (1) should be [10px]PASS
CSS Transitions: property <padding> from [0px] to [10px] at (1.5) should be [15px]PASS
CSS Transitions with transition: all: property <padding> from [0px] to [10px] at (-0.3) should be [0px]PASS
CSS Transitions with transition: all: property <padding> from [0px] to [10px] at (0) should be [0px]PASS
CSS Transitions with transition: all: property <padding> from [0px] to [10px] at (0.3) should be [3px]PASS
CSS Transitions with transition: all: property <padding> from [0px] to [10px] at (0.6) should be [6px]PASS
CSS Transitions with transition: all: property <padding> from [0px] to [10px] at (1) should be [10px]PASS
CSS Transitions with transition: all: property <padding> from [0px] to [10px] at (1.5) should be [15px]PASS
CSS Animations: property <padding> from [0px] to [10px] at (-0.3) should be [0px]PASS
CSS Animations: property <padding> from [0px] to [10px] at (0) should be [0px]PASS
CSS Animations: property <padding> from [0px] to [10px] at (0.3) should be [3px]PASS
CSS Animations: property <padding> from [0px] to [10px] at (0.6) should be [6px]PASS
CSS Animations: property <padding> from [0px] to [10px] at (1) should be [10px]PASS
CSS Animations: property <padding> from [0px] to [10px] at (1.5) should be [15px]PASS
Web Animations: property <padding> from [0px] to [10px] at (-0.3) should be [0px]FAILassert_true: Web Animations should be supported expected true got false
Web Animations: property <padding> from [0px] to [10px] at (0) should be [0px]FAILassert_true: Web Animations should be supported expected true got false
Web Animations: property <padding> from [0px] to [10px] at (0.3) should be [3px]FAILassert_true: Web Animations should be supported expected true got false
Web Animations: property <padding> from [0px] to [10px] at (0.6) should be [6px]FAILassert_true: Web Animations should be supported expected true got false
Web Animations: property <padding> from [0px] to [10px] at (1) should be [10px]FAILassert_true: Web Animations should be supported expected true got false
Web Animations: property <padding> from [0px] to [10px] at (1.5) should be [15px]FAILassert_true: Web Animations should be supported expected true got false
CSS Transitions: property <padding> from [20px 40px 60px 80px] to [30px 50px 70px 90px] at (-0.3) should be [17px 37px 57px 77px]PASS
CSS Transitions: property <padding> from [20px 40px 60px 80px] to [30px 50px 70px 90px] at (0) should be [20px 40px 60px 80px]PASS
CSS Transitions: property <padding> from [20px 40px 60px 80px] to [30px 50px 70px 90px] at (0.3) should be [23px 43px 63px 83px]PASS
CSS Transitions: property <padding> from [20px 40px 60px 80px] to [30px 50px 70px 90px] at (0.6) should be [26px 46px 66px 86px]PASS
CSS Transitions: property <padding> from [20px 40px 60px 80px] to [30px 50px 70px 90px] at (1) should be [30px 50px 70px 90px]PASS
CSS Transitions: property <padding> from [20px 40px 60px 80px] to [30px 50px 70px 90px] at (1.5) should be [35px 55px 75px 95px]PASS
CSS Transitions with transition: all: property <padding> from [20px 40px 60px 80px] to [30px 50px 70px 90px] at (-0.3) should be [17px 37px 57px 77px]PASS
CSS Transitions with transition: all: property <padding> from [20px 40px 60px 80px] to [30px 50px 70px 90px] at (0) should be [20px 40px 60px 80px]PASS
CSS Transitions with transition: all: property <padding> from [20px 40px 60px 80px] to [30px 50px 70px 90px] at (0.3) should be [23px 43px 63px 83px]PASS
CSS Transitions with transition: all: property <padding> from [20px 40px 60px 80px] to [30px 50px 70px 90px] at (0.6) should be [26px 46px 66px 86px]PASS
CSS Transitions with transition: all: property <padding> from [20px 40px 60px 80px] to [30px 50px 70px 90px] at (1) should be [30px 50px 70px 90px]PASS
CSS Transitions with transition: all: property <padding> from [20px 40px 60px 80px] to [30px 50px 70px 90px] at (1.5) should be [35px 55px 75px 95px]PASS
CSS Animations: property <padding> from [20px 40px 60px 80px] to [30px 50px 70px 90px] at (-0.3) should be [17px 37px 57px 77px]PASS
CSS Animations: property <padding> from [20px 40px 60px 80px] to [30px 50px 70px 90px] at (0) should be [20px 40px 60px 80px]PASS
CSS Animations: property <padding> from [20px 40px 60px 80px] to [30px 50px 70px 90px] at (0.3) should be [23px 43px 63px 83px]PASS
CSS Animations: property <padding> from [20px 40px 60px 80px] to [30px 50px 70px 90px] at (0.6) should be [26px 46px 66px 86px]PASS
CSS Animations: property <padding> from [20px 40px 60px 80px] to [30px 50px 70px 90px] at (1) should be [30px 50px 70px 90px]PASS
CSS Animations: property <padding> from [20px 40px 60px 80px] to [30px 50px 70px 90px] at (1.5) should be [35px 55px 75px 95px]PASS
Web Animations: property <padding> from [20px 40px 60px 80px] to [30px 50px 70px 90px] at (-0.3) should be [17px 37px 57px 77px]FAILassert_true: Web Animations should be supported expected true got false
Web Animations: property <padding> from [20px 40px 60px 80px] to [30px 50px 70px 90px] at (0) should be [20px 40px 60px 80px]FAILassert_true: Web Animations should be supported expected true got false
Web Animations: property <padding> from [20px 40px 60px 80px] to [30px 50px 70px 90px] at (0.3) should be [23px 43px 63px 83px]FAILassert_true: Web Animations should be supported expected true got false
Web Animations: property <padding> from [20px 40px 60px 80px] to [30px 50px 70px 90px] at (0.6) should be [26px 46px 66px 86px]FAILassert_true: Web Animations should be supported expected true got false
Web Animations: property <padding> from [20px 40px 60px 80px] to [30px 50px 70px 90px] at (1) should be [30px 50px 70px 90px]FAILassert_true: Web Animations should be supported expected true got false
Web Animations: property <padding> from [20px 40px 60px 80px] to [30px 50px 70px 90px] at (1.5) should be [35px 55px 75px 95px]FAILassert_true: Web Animations should be supported expected true got false

/css/css-box/animation/padding-interpolation.html

<!DOCTYPE html>
<meta charset="UTF-8">
<title>padding interpolation</title>
<link rel="help" href="https://drafts.csswg.org/css-box-3/#padding-shorthand">
<meta name="assert" content="padding supports animation as a list of lengths">

<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/css/support/interpolation-testcommon.js"></script>

<style>
.parent {
  padding: 30px;
}
.target {
  width: 1px;
  height: 1px;
  background-color: black;
  display: inline-block;
  padding: 10px;
}
.expected {
  background-color: green;
  margin-right: 10px;
}
</style>

<body></body>

<script>
test_interpolation({
  property: 'padding',
  from: neutralKeyframe,
  to: '20px',
}, [
  {at: -0.3, expect: '7px'},
  {at: 0, expect: '10px'},
  {at: 0.3, expect: '13px'},
  {at: 0.6, expect: '16px'},
  {at: 1, expect: '20px'},
  {at: 1.5, expect: '25px'},
]);

test_interpolation({
  property: 'padding',
  from: 'initial',
  to: '20px',
}, [
  {at: -0.3, expect: '0px'},
  {at: 0, expect: '0px'},
  {at: 0.3, expect: '6px'},
  {at: 0.6, expect: '12px'},
  {at: 1, expect: '20px'},
  {at: 1.5, expect: '30px'},
]);

test_interpolation({
  property: 'padding',
  from: 'inherit',
  to: '20px',
}, [
  {at: -0.3, expect: '33px'},
  {at: 0, expect: '30px'},
  {at: 0.3, expect: '27px'},
  {at: 0.6, expect: '24px'},
  {at: 1, expect: '20px'},
  {at: 1.5, expect: '15px'},
]);

test_interpolation({
  property: 'padding',
  from: 'unset',
  to: '20px',
}, [
  {at: -0.3, expect: '0px'},
  {at: 0, expect: '0px'},
  {at: 0.3, expect: '6px'},
  {at: 0.6, expect: '12px'},
  {at: 1, expect: '20px'},
  {at: 1.5, expect: '30px'},
]);

test_interpolation({
  property: 'padding',
  from: '0px',
  to: '10px'
}, [
  {at: -0.3, expect: '0px'}, // CSS padding can't be negative.
  {at: 0, expect: '0px'},
  {at: 0.3, expect: '3px'},
  {at: 0.6, expect: '6px'},
  {at: 1, expect: '10px'},
  {at: 1.5, expect: '15px'}
]);

test_interpolation({
  property: 'padding',
  from: '20px 40px 60px 80px',
  to: '30px 50px 70px 90px'
}, [
  {at: -0.3, expect: '17px 37px 57px 77px'},
  {at: 0, expect: '20px 40px 60px 80px'},
  {at: 0.3, expect: '23px 43px 63px 83px'},
  {at: 0.6, expect: '26px 46px 66px 86px'},
  {at: 1, expect: '30px 50px 70px 90px'},
  {at: 1.5, expect: '35px 55px 75px 95px'}
]);
</script>