Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!doctype html>
<html class="reftest-wait">
<meta charset="utf-8">
<title>View Transitions: Table with captions</title>
<link rel="author" href="mailto:emilio@crisal.io" title="Emilio Cobos Álvarez">
<link rel="author" href="https://mozilla.org" title="Mozilla">
<link rel="match" href="table-caption-ref.html">
<style>
table {
view-transition-name: table;
}
:root::view-transition-group(root) {
opacity: 0;
}
:root::view-transition-group(*) {
animation-play-state: paused;
}
:root::view-transition {
background: pink;
}
</style>
<table>
<caption>Caption</caption>
<tr>
<td>Some row</td>
</tr>
</table>
<script>
onload = () => {
requestAnimationFrame(() => {
requestAnimationFrame(() => {
document.startViewTransition().ready.then(() => {
document.documentElement.classList = "";
});
})
});
}
</script>