From fe83305b041ea0feae8c30ad5252595297a0e02e Mon Sep 17 00:00:00 2001
From: Delan Azabani
Date: Fri, 15 Apr 2022 19:13:45 +0800
Subject: [PATCH 1/4] [css-pseudo] no decoration propagation on highlights
(closes #6829)
---
css-pseudo-4/Overview.bs | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/css-pseudo-4/Overview.bs b/css-pseudo-4/Overview.bs
index b6a6144b43a..c1664fd1fa2 100644
--- a/css-pseudo-4/Overview.bs
+++ b/css-pseudo-4/Overview.bs
@@ -988,6 +988,23 @@ Text and Text Decorations
+ While the element’s own
+ line decorations
+ are propagated from
+ containing decorating boxes
+ as usual,
+ decorations introduced by [=highlight pseudo-elements=]
+ apply only to the text
+ directly associated with the [=originating element=]
+ (or intervening [=pseudo-element=] such as ''::first-line'' or ''::first-letter'').
+
+ Note: Because highlight decorations
+ are propagated through inheritance,
+ not through the box tree,
+ they can be declared on the root element
+ and still reliably decorate out-of-flow descendants,
+ which is not the case for non-highlight decorations.
+
Replaced Elements
From c6002f7a2b0c49a2e75b672dc1978009e1a35548 Mon Sep 17 00:00:00 2001
From: Delan Azabani
Date: Fri, 15 Apr 2022 19:17:13 +0800
Subject: [PATCH 2/4] =?UTF-8?q?=E2=80=9Cnon-highlight=E2=80=9D=20=E2=86=92?=
=?UTF-8?q?=20=E2=80=9Cthe=20element=E2=80=99s=20own=E2=80=9D?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
css-pseudo-4/Overview.bs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/css-pseudo-4/Overview.bs b/css-pseudo-4/Overview.bs
index c1664fd1fa2..98773f5dd17 100644
--- a/css-pseudo-4/Overview.bs
+++ b/css-pseudo-4/Overview.bs
@@ -1003,7 +1003,7 @@ Text and Text Decorations
not through the box tree,
they can be declared on the root element
and still reliably decorate out-of-flow descendants,
- which is not the case for non-highlight decorations.
+ which is not the case for the element’s own decorations.
Replaced Elements
From 7fc965dd2bf6951f55dc0eb4b70f2689edbaecc2 Mon Sep 17 00:00:00 2001
From: Delan Azabani
Date: Wed, 20 Apr 2022 16:34:26 +0800
Subject: [PATCH 3/4] simplify normative text; elaborate note
---
css-pseudo-4/Overview.bs | 25 +++++++++----------------
1 file changed, 9 insertions(+), 16 deletions(-)
diff --git a/css-pseudo-4/Overview.bs b/css-pseudo-4/Overview.bs
index 98773f5dd17..eced4cd9134 100644
--- a/css-pseudo-4/Overview.bs
+++ b/css-pseudo-4/Overview.bs
@@ -988,22 +988,15 @@ Text and Text Decorations
- While the element’s own
- line decorations
- are propagated from
- containing decorating boxes
- as usual,
- decorations introduced by [=highlight pseudo-elements=]
- apply only to the text
- directly associated with the [=originating element=]
- (or intervening [=pseudo-element=] such as ''::first-line'' or ''::first-letter'').
-
- Note: Because highlight decorations
- are propagated through inheritance,
- not through the box tree,
- they can be declared on the root element
- and still reliably decorate out-of-flow descendants,
- which is not the case for the element’s own decorations.
+ Line decorations introduced by [=highlight pseudo-elements=]
+ apply only to the text associated with their [=originating element=],
+ and are not propagated to descendants
+ except via property [=inheritance=] (as described [[#highlight-cascade|above]]).
+
+ Note: Unlike the element’s own decorations,
+ decorations declared on the root element’s highlights
+ propagate to [=out-of-flow|out-of-flow elements=] and [=inline blocks=],
+ with thickness and position varying between descendants.
Replaced Elements
From 6dbf3d9906f48963aefed24fa7bebd986f9149f6 Mon Sep 17 00:00:00 2001
From: Delan Azabani
Date: Tue, 10 May 2022 16:00:21 +0800
Subject: [PATCH 4/4] all highlight pseudo styles, not just the root
Co-authored-by: fantasai
---
css-pseudo-4/Overview.bs | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/css-pseudo-4/Overview.bs b/css-pseudo-4/Overview.bs
index eced4cd9134..61c67c2a27e 100644
--- a/css-pseudo-4/Overview.bs
+++ b/css-pseudo-4/Overview.bs
@@ -993,8 +993,8 @@ Text and Text Decorations
and are not propagated to descendants
except via property [=inheritance=] (as described [[#highlight-cascade|above]]).
- Note: Unlike the element’s own decorations,
- decorations declared on the root element’s highlights
+ Note: Unlike the originating element’s own decorations,
+ decorations declared on a highlight pseudo-element
propagate to [=out-of-flow|out-of-flow elements=] and [=inline blocks=],
with thickness and position varying between descendants.