From 4bf2385b81ebb5f457cbd2296e0d0206f5db5436 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=80=E4=B8=9D?= Date: Thu, 10 Oct 2024 20:50:02 +0800 Subject: [PATCH] [css-anchor-position] Allow anchor-size() for insets and margins - Per resolution in: https://github.com/w3c/csswg-drafts/issues/9827#issuecomment-2160430157 - Chrome CL: https://chromium-review.googlesource.com/c/chromium/src/+/5916307 --- tests/css-anchor-position-1.js | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/tests/css-anchor-position-1.js b/tests/css-anchor-position-1.js index adbf94c..d43ac5f 100644 --- a/tests/css-anchor-position-1.js +++ b/tests/css-anchor-position-1.js @@ -18,13 +18,13 @@ export default { 'right', 'bottom', 'left', + 'inset', 'inset-block-start', 'inset-block-end', 'inset-inline-start', 'inset-inline-end', 'inset-block', 'inset-inline', - 'inset', ], tests: [ 'anchor(inside)', @@ -90,6 +90,27 @@ export default { 'max-inline-size', 'min-block-size', 'max-block-size', + + // inset + 'top', + 'right', + 'bottom', + 'left', + 'inset', + 'inset-block-start', + 'inset-block-end', + 'inset-inline-start', + 'inset-inline-end', + 'inset-block', + 'inset-inline', + + // margin + 'margin-block', + 'margin-block-start', + 'margin-block-end', + 'margin-inline', + 'margin-inline-start', + 'margin-inline-end', ], tests: [ 'anchor-size(width)',