<!DOCTYPE html>
<title>Implicit anchor element for pseudo-elements using anchor functions - dynamic change</title>
<link rel="help" href="https://drafts.csswg.org/css-anchor-position-1/#implicit">
<link rel="match" href="position-area-pseudo-element-implicit-anchor-ref.html">
<style>
body { margin: 0 }
#target  {
    margin-top: 200px;
    margin-left: 200px;
    width: 100px;
    height: 100px;
    background: blue;
}
#target::before, #target::after {
    width: 100px;
    height: 100px;
    position: abso