aboutsummaryrefslogtreecommitdiffstats
path: root/tests/wpt/tests/css/css-values
diff options
context:
space:
mode:
Diffstat (limited to 'tests/wpt/tests/css/css-values')
-rw-r--r--tests/wpt/tests/css/css-values/tree-counting/calc-sibling-function-in-shadow-dom.html10
-rw-r--r--tests/wpt/tests/css/css-values/tree-counting/sibling-function-invalidation.html52
2 files changed, 5 insertions, 57 deletions
diff --git a/tests/wpt/tests/css/css-values/tree-counting/calc-sibling-function-in-shadow-dom.html b/tests/wpt/tests/css/css-values/tree-counting/calc-sibling-function-in-shadow-dom.html
index 92fb6ce3351..ca8eb560ba1 100644
--- a/tests/wpt/tests/css/css-values/tree-counting/calc-sibling-function-in-shadow-dom.html
+++ b/tests/wpt/tests/css/css-values/tree-counting/calc-sibling-function-in-shadow-dom.html
@@ -33,9 +33,9 @@
<slot></slot>
</div>
`;
- assert_equals(getComputedStyle(target).zIndex, '3');
- assert_equals(getComputedStyle(target).order, '3');
- assert_equals(getComputedStyle(target).orphans, '3');
- assert_equals(getComputedStyle(target).widows, '3');
- }, 'Host children have sibling-index() and sibling-count() based on assignedNodes order');
+ assert_equals(getComputedStyle(target).zIndex, '4');
+ assert_equals(getComputedStyle(target).order, '4');
+ assert_equals(getComputedStyle(target).orphans, '4');
+ assert_equals(getComputedStyle(target).widows, '4');
+ }, 'Host children have sibling-index() and sibling-count() based on the DOM tree order');
</script>
diff --git a/tests/wpt/tests/css/css-values/tree-counting/sibling-function-invalidation.html b/tests/wpt/tests/css/css-values/tree-counting/sibling-function-invalidation.html
index 3c75c78530d..74f4995f5f7 100644
--- a/tests/wpt/tests/css/css-values/tree-counting/sibling-function-invalidation.html
+++ b/tests/wpt/tests/css/css-values/tree-counting/sibling-function-invalidation.html
@@ -48,55 +48,3 @@
assert_equals(t2.offsetHeight, 50);
}, "5 siblings after removal");
</script>
-
-<style>
- #t3 {
- width: calc(10px * sibling-index());
- height: 50px;
- background: teal;
- }
-</style>
-<div>
- <template shadowrootmode="open">
- <slot></slot>
- </template>
- <div id="rm3"></div>
- <div></div>
- <div></div>
- <div></div>
- <div></div>
- <div id="t3"></div>
-</div>
-<script>
- test(() => assert_equals(t3.offsetWidth, 60), "Initially 6th slotted sibling");
- test(() => {
- rm3.slot = "null";
- assert_equals(t3.offsetWidth, 50);
- }, "5th sibling after slot change");
-</script>
-
-<style>
- #t4 {
- width: 50px;
- height: calc(10px * sibling-count());
- background: teal;
- }
-</style>
-<div>
- <template shadowrootmode="open">
- <slot></slot>
- </template>
- <div id="t4"></div>
- <div></div>
- <div></div>
- <div></div>
- <div></div>
- <div id="rm4"></div>
-</div>
-<script>
- test(() => assert_equals(t4.offsetHeight, 60), "Initially 6 slotted siblings");
- test(() => {
- rm4.slot = "null";
- assert_equals(t4.offsetHeight, 50);
- }, "5 siblings after slot change");
-</script>