assert_equals(anchored.offsetTop, expected_offsets.top, "Checking offsetTop");
      assert_equals(anchored.offsetWidth, expected_offsets.width, "Checking offsetWidth");
      assert_equals(anchored.offsetHeight, expected_offsets.height, "Checking offsetHeight");
    }, "Offsets for: " + position_area + " with writing-mode / direction: " + writing_direction);
  }

  const top_left = {left:0, top:0, width:100, height:150};
  const top_right = {left:250, top:0, width:150, height:150};
  const bottom_left = {l