<!DOCTYPE html>
<html>
<head>
  <title>The table element should update its border whenever the caption side changes</title>
  <link rel="author" title="Peng Zhou" href="mailto:zhoupeng.1996@bytedance.com">
  <link rel="help" href="https://www.w3.org/TR/css-tables-3/#computing-the-table-height">
  <link rel="match" href="table-border-paint-caption-change-ref.html">
</head>
<style>
#caption {
  caption-side: top;
}
table, tr, td {
  border: 1px solid #000000;
}
</style>
<body>
<table>
  <caption id="caption">