summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-anchor-position/inset-area-computed.html
blob: a49ff2a452288a5b9676ffe726dd5b3c5df466d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<!DOCTYPE html>
<title>CSS Anchor Positioning: inset-area getComputedStyle()</title>
<link rel="help" href="https://drafts.csswg.org/css-anchor-position/#inset-area">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/css/support/computed-testcommon.js"></script>
<script src="/css/support/inheritance-testcommon.js"></script>
<div id="container">
  <div id="target"></div>
</div>
<script>
  test_computed_value("inset-area", "none");
  test_computed_value("inset-area", "span-all");
  test_computed_value("inset-area", "x-start");
  test_computed_value("inset-area", "center");
  test_computed_value("inset-area", "span-all span-all", "span-all");
  test_computed_value("inset-area", "center center", "center");
  test_computed_value("inset-area", "top center", "center top");
  test_computed_value("inset-area", "span-bottom span-all", "span-bottom");

  assert_not_inherited("inset-area", "none", "span-all");
</script>