From 2ce47418459e3871b1b25bc8524cba2413728701 Mon Sep 17 00:00:00 2001 From: Rakina Zata Amni Date: Tue, 25 Jun 2019 21:49:47 +0900 Subject: [PATCH 01/10] Add delegatesFocus consideration for :focus selector --- source | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/source b/source index 9d749bd678d..0a572bb6398 100644 --- a/source +++ b/source @@ -3160,7 +3160,7 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
  • node document concept
  • host concept
  • -
  • shadow root concept
  • +
  • The shadow root concept, and its delegates focus
  • HTMLCollection interface
  • HTMLCollection.length attribute
  • @@ -3189,6 +3189,7 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
  • The child concept
  • The root and shadow-including root concepts
  • The inclusive ancestor, + shadow-including ancestor, shadow-including descendant, and shadow-including inclusive descendant concepts
  • The first child and next sibling concepts
  • @@ -68944,7 +68945,11 @@ Demos:

    For the purposes of the CSS :focus pseudo-class, an element has the focus when its top-level browsing context has the system focus, it is not itself a browsing context container, - and it is one of the elements listed in the focus chain of the focus chain of the currently focused area of the + top-level browsing context, or it has a shadow root whose delegates + focus is set to true and it is a shadow-including ancestor of any of the + elements listed in the focus chain of the currently focused area of the top-level browsing context.

    @@ -124223,6 +124228,7 @@ INSERT INTERFACES HERE Rahul Purohit, Raj Doshi, Rajas Moonka, + Rakina Zata Amni, Ralf Stoltze, Ralph Giles, Raphael Champeimont, From 19fa763a0903b6d6d50faf09a20475e01b4aca2c Mon Sep 17 00:00:00 2001 From: Rakina Zata Amni Date: Wed, 26 Jun 2019 22:36:14 +0900 Subject: [PATCH 02/10] enforce delegatesFocus, change wording --- source | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/source b/source index 0a572bb6398..853a4805391 100644 --- a/source +++ b/source @@ -68947,11 +68947,9 @@ Demos: context has the system focus, it is not itself a browsing context container, and either it is one of the elements listed in the focus chain of the currently focused area of the - top-level browsing context, or it has a shadow root whose delegates - focus is set to true and it is a shadow-including ancestor of any of the - elements listed in the focus chain of the currently focused area of the - top-level browsing context.

    + top-level browsing context, or its shadow root is not null, delegates + focus, and is the root of at least one element that has the focus.

    :target
    From afd22eb7f33a94cc31c787dc88fb4ee7a740dd0a Mon Sep 17 00:00:00 2001 From: Rakina Zata Amni Date: Thu, 27 Jun 2019 14:57:11 +0900 Subject: [PATCH 03/10] Break up to points --- source | 33 ++++++++++++++++++++++++++------- 1 file changed, 26 insertions(+), 7 deletions(-) diff --git a/source b/source index 853a4805391..b078805d30a 100644 --- a/source +++ b/source @@ -68943,13 +68943,32 @@ Demos:
    :focus

    For the purposes of the CSS :focus - pseudo-class, an element has the focus when its top-level browsing - context has the system focus, it is not itself a browsing context container, - and either it is one of the elements listed in the focus chain of the currently focused area of the - top-level browsing context, or its shadow root is not null, delegates - focus, and is the root of at least one element that has the focus.

    + pseudo-class, an element has the focus when:

    + +
      +
    • +

      Its top-level browsing context has the system focus;

      +
    • +
    • +

      It is not itself a browsing context container; and

      +
    • +
    • +

      At least one of the following is true:

      +
        +
      • +

        It is one of the elements listed in the focus chain of the currently focused area + of the top-level browsing context

        +
      • +
      • +

        Its shadow root is not null, its shadow root's + delegates focus is true, and its shadow root is the + root of at least one element that has + the focus

        +
      • +
      +
    • +
    :target
    From bf7129e31ea03dea204f4b7e6e846fa2e2ba06c9 Mon Sep 17 00:00:00 2001 From: Rakina Zata Amni Date: Thu, 27 Jun 2019 15:51:08 +0900 Subject: [PATCH 04/10] variable, nits --- source | 39 +++++++++++++++++---------------------- 1 file changed, 17 insertions(+), 22 deletions(-) diff --git a/source b/source index b078805d30a..ca9e2750635 100644 --- a/source +++ b/source @@ -68946,28 +68946,23 @@ Demos: pseudo-class, an element has the focus when:

      -
    • -

      Its top-level browsing context has the system focus;

      -
    • -
    • -

      It is not itself a browsing context container; and

      -
    • -
    • -

      At least one of the following is true:

      -
        -
      • -

        It is one of the elements listed in the focus chain of the currently focused area - of the top-level browsing context

        -
      • -
      • -

        Its shadow root is not null, its shadow root's - delegates focus is true, and its shadow root is the - root of at least one element that has - the focus

        -
      • -
      -
    • +
    • its top-level browsing context has the system focus;

    • +
    • it is not itself a browsing context container; and

    • +
    • +

      at least one of the following is true:

      +
        +
      • +

        it is one of the elements listed in the focus chain of the currently focused area of + the top-level browsing context, or

        +
      • +
      • +

        the shadow root shadowRoot is not null, shadowRoot's + delegates focus is true, and shadowRoot is the root of + at least one element that has the focus.

        +
      • +
      +
    From 8ea956a62a1120c3022df79bf4ce063e9c50b569 Mon Sep 17 00:00:00 2001 From: Domenic Denicola Date: Thu, 27 Jun 2019 15:55:32 +0900 Subject: [PATCH 05/10] wrapping nits --- source | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/source b/source index ca9e2750635..8ea415dbdb2 100644 --- a/source +++ b/source @@ -68951,16 +68951,13 @@ Demos:
  • at least one of the following is true:

      -
    • -

      it is one of the elements listed in the focus chain of the currently focused area of - the top-level browsing context, or

      -
    • -
    • -

      the shadow root shadowRoot is not null, shadowRoot's - delegates focus is true, and shadowRoot is the root of - at least one element that has the focus.

      -
    • +
    • it is one of the elements listed in the focus chain of the currently focused area of + the top-level browsing context, or

    • +
    • its shadow root shadowRoot is not null, + shadowRoot's delegates focus is true, and shadowRoot is + the root of at least one element that has + the focus.

  • From 0cf3342e2a44dc5a7f47e6975cb29e5c55ddf031 Mon Sep 17 00:00:00 2001 From: Rakina Zata Amni Date: Tue, 16 Jul 2019 10:37:00 +0900 Subject: [PATCH 06/10] Explicitly say 'shadow host' --- source | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/source b/source index 8ea415dbdb2..fd2624a1096 100644 --- a/source +++ b/source @@ -3161,6 +3161,7 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
  • node document concept
  • host concept
  • The shadow root concept, and its delegates focus
  • +
  • shadow host concept
  • HTMLCollection interface
  • HTMLCollection.length attribute
  • @@ -68954,10 +68955,10 @@ Demos:
  • it is one of the elements listed in the focus chain of the currently focused area of the top-level browsing context, or

  • -
  • its shadow root shadowRoot is not null, - shadowRoot's delegates focus is true, and shadowRoot is - the root of at least one element that has - the focus.

  • +
  • it is a shadow host and its shadow root + shadowRoot is not null, shadowRoot's delegates focus is + true, and shadowRoot is the root of at least one element that + has the focus.

  • From fc49cf6f02c964f4bff39a86be0659bdfc23ed67 Mon Sep 17 00:00:00 2001 From: Rakina Zata Amni Date: Wed, 17 Jul 2019 16:58:52 +0900 Subject: [PATCH 07/10] Link to element's shadow root definition --- source | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/source b/source index fd2624a1096..12a7d9cf9f1 100644 --- a/source +++ b/source @@ -3161,7 +3161,6 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
  • node document concept
  • host concept
  • The shadow root concept, and its delegates focus
  • -
  • shadow host concept
  • HTMLCollection interface
  • HTMLCollection.length attribute
  • @@ -68955,10 +68954,11 @@ Demos:
  • it is one of the elements listed in the focus chain of the currently focused area of the top-level browsing context, or

  • -
  • it is a shadow host and its shadow root - shadowRoot is not null, shadowRoot's delegates focus is - true, and shadowRoot is the root of at least one element that - has the focus.

  • +
  • its + shadow + root shadowRoot is not null, shadowRoot's delegates + focus is true, and shadowRoot is the root of at least one + element that has the focus.

  • From a88cd274131b2d9836dbc3baea0f78606878bb83 Mon Sep 17 00:00:00 2001 From: Domenic Denicola Date: Tue, 30 Jul 2019 12:07:53 -0400 Subject: [PATCH 08/10] Use data-x, not data-x-href --- source | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/source b/source index 12a7d9cf9f1..db3efe42fb4 100644 --- a/source +++ b/source @@ -68954,11 +68954,10 @@ Demos:
  • it is one of the elements listed in the focus chain of the currently focused area of the top-level browsing context, or

  • -
  • its - shadow - root shadowRoot is not null, shadowRoot's delegates - focus is true, and shadowRoot is the root of at least one - element that has the focus.

  • +
  • itsshadow root shadowRoot + is not null, shadowRoot's delegates focus is true, and + shadowRoot is the root of at least one element that has the focus.

  • From f23828607ef26887fb43c3ae0d84110425ee016d Mon Sep 17 00:00:00 2001 From: Rakina Zata Amni Date: Fri, 20 Sep 2019 14:33:28 +0900 Subject: [PATCH 09/10] remove delegatesfocus --- source | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/source b/source index db3efe42fb4..b287473a9ce 100644 --- a/source +++ b/source @@ -3160,7 +3160,7 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
  • node document concept
  • host concept
  • -
  • The shadow root concept, and its delegates focus
  • +
  • The shadow root concept
  • HTMLCollection interface
  • HTMLCollection.length attribute
  • @@ -3189,7 +3189,6 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
  • The child concept
  • The root and shadow-including root concepts
  • The inclusive ancestor, - shadow-including ancestor, shadow-including descendant, and shadow-including inclusive descendant concepts
  • The first child and next sibling concepts
  • @@ -68955,9 +68954,8 @@ Demos: data-x="currently focused area of a top-level browsing context">currently focused area of the top-level browsing context, or

  • itsshadow root shadowRoot - is not null, shadowRoot's delegates focus is true, and - shadowRoot is the root of at least one element that has the focus.

  • + is not null and shadowRoot is the root of at least one element that + has the focus.

    From b47435c5b4d8433545abd30ac131d4e02d4c4ff9 Mon Sep 17 00:00:00 2001 From: Domenic Denicola Date: Tue, 24 Sep 2019 15:18:16 +0900 Subject: [PATCH 10/10] Missing space --- source | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source b/source index b287473a9ce..f372e373bff 100644 --- a/source +++ b/source @@ -68953,9 +68953,9 @@ Demos:
  • it is one of the elements listed in the focus chain of the currently focused area of the top-level browsing context, or

  • -
  • itsshadow root shadowRoot - is not null and shadowRoot is the root of at least one element that - has the focus.

  • +
  • its shadow root + shadowRoot is not null and shadowRoot is the root of at + least one element that has the focus.