Skip to content

Commit

Permalink
CSSTransitionDiscrete: Add tests part 5
Browse files Browse the repository at this point in the history
Bug: 1399631
Change-Id: I5dcd86199053d0408060106d50f87579b480ff01
  • Loading branch information
josepharhar authored and chromium-wpt-export-bot committed Apr 17, 2023
1 parent dc091ce commit ec1c077
Show file tree
Hide file tree
Showing 14 changed files with 219 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<!DOCTYPE html>
<link rel=author href="mailto:jarhar@chromium.org">
<link rel=help href="https://drafts.fxtf.org/compositing/#isolation">
<link rel=help href="https://drafts.csswg.org/css-transitions-2/#transition-property-property">
<link rel=help href="https://github.com/w3c/csswg-drafts/issues/4441">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/css/support/interpolation-testcommon.js"></script>

<body>
<script>
test_no_interpolation({
property: 'isolation',
from: 'initial',
to: 'isolate'
});
</script>
24 changes: 24 additions & 0 deletions css/css-align/animation/justify-no-interpolation.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<!DOCTYPE html>
<link rel=author href="mailto:jarhar@chromium.org">
<link rel=help href="https://w3c.github.io/csswg-drafts/css-align/#justify-items-property">
<link rel=help href="https://w3c.github.io/csswg-drafts/css-align/#justify-self-property">
<link rel=help href="https://github.com/w3c/csswg-drafts/issues/4441">
<link rel=help href="https://drafts.csswg.org/css-transitions-2/#transition-property-property">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/css/support/interpolation-testcommon.js"></script>

<body>
<script>
test_no_interpolation({
property: 'justify-items',
from: 'initial',
to: 'baseline'
});

test_no_interpolation({
property: 'justify-self',
from: 'initial',
to: 'baseline'
});
</script>
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<!DOCTYPE html>
<link rel=author href="mailto:jarhar@chromium.org">
<link rel=help href="https://github.com/w3c/csswg-drafts/issues/4441">
<link rel=help href="https://w3c.github.io/csswg-drafts/css-color-adjust/#forced-color-adjust-prop">
<link rel=help href="https://drafts.csswg.org/css-transitions-2/#transition-property-property">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/css/support/interpolation-testcommon.js"></script>

<body>
<script>
test_no_interpolation({
property: 'forced-color-adjust',
from: 'initial',
to: 'none'
});
</script>
58 changes: 58 additions & 0 deletions css/css-grid/animation/grid-no-interpolation.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
<!DOCTYPE html>
<link rel=author href="mailto:jarhar@chromium.org">
<link rel=help href="https://github.com/w3c/csswg-drafts/issues/4441">
<link rel=help href="https://drafts.csswg.org/css-transitions-2/#transition-property-property">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/css/support/interpolation-testcommon.js"></script>

<body>
<script>
test_no_interpolation({
property: 'grid-auto-columns',
from: 'initial',
to: '123px'
});

test_no_interpolation({
property: 'grid-auto-flow',
from: 'initial',
to: 'column'
});

test_no_interpolation({
property: 'grid-auto-rows',
from: 'initial',
to: '123px'
});

test_no_interpolation({
property: 'grid-column-end',
from: 'initial',
to: '123'
});

test_no_interpolation({
property: 'grid-column-start',
from: 'initial',
to: '123'
});

test_no_interpolation({
property: 'grid-row-end',
from: 'initial',
to: '123'
});

test_no_interpolation({
property: 'grid-row-start',
from: 'initial',
to: '123'
});

test_no_interpolation({
property: 'grid-template-areas',
from: 'initial',
to: '"."'
});
</script>
22 changes: 22 additions & 0 deletions css/css-images/animation/image-no-interpolation.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<!DOCTYPE html>
<link rel=author href="mailto:jarhar@chromium.org">
<link rel=help href="https://github.com/w3c/csswg-drafts/issues/4441">
<link rel=help href="https://drafts.csswg.org/css-transitions-2/#transition-property-property">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/css/support/interpolation-testcommon.js"></script>

<body>
<script>
test_no_interpolation({
property: 'image-orientation',
from: 'initial',
to: 'none'
});

test_no_interpolation({
property: 'image-rendering',
from: 'initial',
to: 'pixelated'
});
</script>
16 changes: 16 additions & 0 deletions css/css-inline/initial-letter-no-interoplation.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<!DOCTYPE html>
<link rel=author href="mailto:jarhar@chromium.org">
<link rel=help href="https://github.com/w3c/csswg-drafts/issues/4441">
<link rel=help href="https://drafts.csswg.org/css-transitions-2/#transition-property-property">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/css/support/interpolation-testcommon.js"></script>

<body>
<script>
test_no_interpolation({
property: 'initial-letter',
from: 'initial',
to: '123'
});
</script>
17 changes: 17 additions & 0 deletions css/css-sizing/animation/height-no-interpolation.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<!DOCTYPE html>
<link rel=author href="mailto:jarhar@chromium.org">
<link rel=help href="https://github.com/w3c/csswg-drafts/issues/4441">
<link rel=help href="https://drafts.csswg.org/css-transitions-2/#transition-property-property">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/css/support/interpolation-testcommon.js"></script>

<body>
<script>
// height is interpolable, but height:auto is not.
test_no_interpolation({
property: 'height',
from: '0px',
to: 'auto'
});
</script>
31 changes: 31 additions & 0 deletions css/css-text/animations/hyphen-no-interpolation.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<!DOCTYPE html>
<link rel=author href="mailto:jarhar@chromium.org">
<link rel=help href="https://github.com/w3c/csswg-drafts/issues/4441">
<link rel=help href="https://w3c.github.io/csswg-drafts/css-text-4/#propdef-hyphenate-character">
<link rel=help href="https://w3c.github.io/csswg-drafts/css-text-4/#propdef-hyphenate-limit-chars">
<link rel=help href="https://w3c.github.io/csswg-drafts/css-text/#hyphens-property">
<link rel=help href="https://drafts.csswg.org/css-transitions-2/#transition-property-property">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/css/support/interpolation-testcommon.js"></script>

<body>
<script>
test_no_interpolation({
property: 'hyphenate-character',
from: 'initial',
to: '"e"'
});

test_no_interpolation({
property: 'hyphenate-limit-chars',
from: 'initial',
to: '10'
});

test_no_interpolation({
property: 'hyphens',
from: 'initial',
to: 'auto'
});
</script>
17 changes: 17 additions & 0 deletions css/css-text/animations/line-break-no-interpolation.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<!DOCTYPE html>
<link rel=author href="mailto:jarhar@chromium.org">
<link rel=help href="https://github.com/w3c/csswg-drafts/issues/4441">
<link rel=help href="https://w3c.github.io/csswg-drafts/css-text/#line-break-property">
<link rel=help href="https://drafts.csswg.org/css-transitions-2/#transition-property-property">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/css/support/interpolation-testcommon.js"></script>

<body>
<script>
test_no_interpolation({
property: 'line-break',
from: 'initial',
to: 'anywhere'
});
</script>

0 comments on commit ec1c077

Please sign in to comment.