blob: 20546bfeee7e559b045d4e7ff3d77280d10c4be6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
<!doctype html>
<meta charset="utf-8">
<title>Computed StylePropertyMap.get("position")</title>
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#get-a-value-from-a-stylepropertymap">
<meta name="assert" content="Test computed StylePropertyMap.get" />
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="../../resources/testhelper.js"></script>
<body>
<div id="log">
<script>
'use strict';
test(t => {
const styleMap = createComputedStyleMap(t, 'display: table-column; position: sticky');
assert_style_value_equals(styleMap.get('position'), new CSSKeywordValue('sticky'));
}, 'Computed position sticky even if it does not apply');
test(t => {
const styleMap = createComputedStyleMap(t, 'display: table-column; position: absolute');
assert_style_value_equals(styleMap.get('position'), new CSSKeywordValue('absolute'));
}, 'Computed position absolute even if it does not apply');
</script>
|