Skip to content

Commit

Permalink
Re-add WPT deleted by autoroller
Browse files Browse the repository at this point in the history
A test was moved from our internal web_tests to WPT here:
http://crrev.com/704729

However, the autoroller decided to delete it here for unknown reasons:
http://crrev.com/704815

We haven't been running this WPT for many years since it was never added
back. This patch adds the WPT back in.

Change-Id: I36fc8a1a18b8f72138f0f8c2cf00fe12462d3a20
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4356493
Auto-Submit: Joey Arhar <jarhar@chromium.org>
Commit-Queue: Weizhong Xia <weizhong@google.com>
Reviewed-by: Weizhong Xia <weizhong@google.com>
Cr-Commit-Position: refs/heads/main@{#1119683}
  • Loading branch information
josepharhar authored and Chromium LUCI CQ committed Mar 21, 2023
1 parent 8ac3891 commit 4c037cf
Showing 1 changed file with 70 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
<!DOCTYPE html>
<meta charset="UTF-8">
<title>visibility interpolation</title>
<link rel="help" href="https://www.w3.org/TR/CSS2/visufx.html#visibility">
<meta name="assert" content="visibility supports">

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

<body>
<script>
test_interpolation({
property: 'visibility',
from: 'visible',
to: 'visible'
}, [
{at: -1, expect: 'visible'},
{at: 0, expect: 'visible'},
{at: 0.5, expect: 'visible'},
{at: 1, expect: 'visible'},
{at: 1.5, expect: 'visible'},
]);

test_interpolation({
property: 'visibility',
from: 'visible',
to: 'hidden'
}, [
{at: -1, expect: 'visible'},
{at: 0, expect: 'visible'},
{at: 0.1, expect: 'visible'},
{at: 0.9, expect: 'visible'},
{at: 1, expect: 'hidden'},
{at: 1.5, expect: 'hidden'},
]);

test_interpolation({
property: 'visibility',
from: 'hidden',
to: 'visible'
}, [
{at: -1, expect: 'hidden'},
{at: 0, expect: 'hidden'},
{at: 0.1, expect: 'visible'},
{at: 0.9, expect: 'visible'},
{at: 1, expect: 'visible'},
{at: 1.5, expect: 'visible'},
]);

test_interpolation({
property: 'visibility',
from: 'collapse',
to: 'visible'
}, [
{at: -1, expect: 'collapse'},
{at: 0, expect: 'collapse'},
{at: 0.1, expect: 'visible'},
{at: 0.9, expect: 'visible'},
{at: 1, expect: 'visible'},
{at: 1.5, expect: 'visible'},
]);

test_no_interpolation({
property: 'visibility',
from: 'collapse',
to: 'hidden'
});
</script>
</body>

0 comments on commit 4c037cf

Please sign in to comment.