From 23ca39a3ba577544d4c858be2910369eef0235e8 Mon Sep 17 00:00:00 2001 From: yarusome <97945148+yarusome@users.noreply.github.com> Date: Mon, 17 Apr 2023 21:40:08 +0800 Subject: [PATCH 1/2] Add link to "top layer" --- files/en-us/web/css/css_containment/index.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/en-us/web/css/css_containment/index.md b/files/en-us/web/css/css_containment/index.md index 760fc19ae293cd3..7f57bf5f427ec06 100644 --- a/files/en-us/web/css/css_containment/index.md +++ b/files/en-us/web/css/css_containment/index.md @@ -145,14 +145,14 @@ Its possible values are: ### Relevant to the user -The specification refers to the concept of [relevant to the user](https://www.w3.org/TR/css-contain-2/#relevant-to-the-user). An element that is relevant to the user should be rendered, as it visible, and/or being interacted with by the user. +The specification refers to the concept of [relevant to the user](https://www.w3.org/TR/css-contain-2/#relevant-to-the-user). An element that is relevant to the user should be rendered, as it is visible, and/or being interacted with by the user. To be precise, an element is relevant to the user if any of the following are true: - The element appears in the viewport, or a user-agent-defined margin around the viewport (50% of the viewport dimensions, to give the app time to prepare for when the element visibility changes). - The element or its contents receive focus. - The element or its contents are selected, for example by dragging over the text with the mouse cursor or by some other highlight operation. -- The element or its contents are placed in the top layer. +- The element or its contents are placed in the [top layer](https://w3c.github.io/csswg-drafts/css-position-4/#top-layer). ### Skips its contents From 3da696c0698f269eb16862eab6545c8b68ee95ee Mon Sep 17 00:00:00 2001 From: yarusome <97945148+yarusome@users.noreply.github.com> Date: Mon, 17 Apr 2023 22:01:34 +0800 Subject: [PATCH 2/2] Update spec link --- files/en-us/web/css/css_containment/index.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/en-us/web/css/css_containment/index.md b/files/en-us/web/css/css_containment/index.md index 7f57bf5f427ec06..15b4ffe58b9776e 100644 --- a/files/en-us/web/css/css_containment/index.md +++ b/files/en-us/web/css/css_containment/index.md @@ -145,7 +145,7 @@ Its possible values are: ### Relevant to the user -The specification refers to the concept of [relevant to the user](https://www.w3.org/TR/css-contain-2/#relevant-to-the-user). An element that is relevant to the user should be rendered, as it is visible, and/or being interacted with by the user. +The specification refers to the concept of [relevant to the user](https://w3c.github.io/csswg-drafts/css-contain/#relevant-to-the-user). An element that is relevant to the user should be rendered, as it is visible, and/or being interacted with by the user. To be precise, an element is relevant to the user if any of the following are true: @@ -156,7 +156,7 @@ To be precise, an element is relevant to the user if any of the following are tr ### Skips its contents -The specification refers to the concept of [skips its contents](https://www.w3.org/TR/css-contain-2/#skips-its-contents). This means that the element referred to is not relevant to the user and will not be rendered to improve performance. +The specification refers to the concept of [skips its contents](https://w3c.github.io/csswg-drafts/css-contain/#skips-its-contents). This means that the element referred to is not relevant to the user and will not be rendered to improve performance. To be precise, when an element skips its contents: