From b291178f0f3346f07b02237c96e41f8656d602a8 Mon Sep 17 00:00:00 2001 From: Rune Lillesveen Date: Thu, 20 Oct 2022 15:23:50 -0700 Subject: [PATCH] [css-anchor] Add some tests for anchor-name across trees The current implementation leaks anchor-name out of shadow trees. That is not according to spec. See also https://github.com/w3c/csswg-drafts/issues/7916 Bug: 1376917 Change-Id: I2f79f68b5595749a6802b753395cb7ee535c5778 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3966354 Reviewed-by: Xiaocheng Hu Commit-Queue: Rune Lillesveen Cr-Commit-Position: refs/heads/main@{#1061842} --- .../anchor-name-in-shadow.html | 53 +++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 css/css-anchor-position/anchor-name-in-shadow.html diff --git a/css/css-anchor-position/anchor-name-in-shadow.html b/css/css-anchor-position/anchor-name-in-shadow.html new file mode 100644 index 00000000000000..7e505ed5928200 --- /dev/null +++ b/css/css-anchor-position/anchor-name-in-shadow.html @@ -0,0 +1,53 @@ + +anchor-name is a tree scoped reference + + + + +
+
+
+
+ + +
+