From d140333573d874f825505e4cf079a4c2961eda3d Mon Sep 17 00:00:00 2001
From: Maksim Sadym
Date: Tue, 22 Oct 2024 17:57:22 +0200
Subject: [PATCH 1/8] Input events dispatch to top-level frame
---
index.html | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/index.html b/index.html
index 00450b39..9f88ed01 100644
--- a/index.html
+++ b/index.html
@@ -8289,8 +8289,9 @@ Ticks
dispatch steps on a browsing context context ,
and a list of events and their properties. These steps
must be equivalent to performing the given input device manipulations
- on context , such that trusted events corresponding to the
- entries in list of events are dispatched.
+ on the top-browsing context ancestor of the context , such
+ that trusted events corresponding to the entries in list of events
+ are dispatched.
The list of events is not comprehensive; in particular the default
From e50676de0a44326d09d807b06c9e9bc58578f136 Mon Sep 17 00:00:00 2001
From: Maksim Sadym
Date: Wed, 23 Oct 2024 10:19:30 +0200
Subject: [PATCH 2/8] top-browsing context
---
index.html | 15 ++++++++-------
1 file changed, 8 insertions(+), 7 deletions(-)
diff --git a/index.html b/index.html
index 9f88ed01..fb8506dc 100644
--- a/index.html
+++ b/index.html
@@ -2212,7 +2212,7 @@ Sessions
browsing context, which is set to the parent of the current
browsing context when changing browsing contexts, and an
associated current top-level browsing context , which is
- set to the top-browsing context ancestor of the current browsing
+ set to the top-level browsing context of the current browsing
context , when changing browsing contexts.
An HTTP session has an associated session
@@ -8286,12 +8286,12 @@ Ticks
content observable effects that must be consistent across
implementations. To accommodate this, the specification requires
that remote ends perform implementation-specific action
- dispatch steps on a browsing context context ,
- and a list of events and their properties. These steps
- must be equivalent to performing the given input device manipulations
- on the top-browsing context ancestor of the context , such
- that trusted events corresponding to the entries in list of events
- are dispatched.
+ dispatch steps on a top-level browsing context of
+ context , and a list of events and their properties.
+ These steps must be equivalent to performing the given input device
+ manipulations on the top-level browsing context of the
+ context , such that trusted events corresponding to the entries in
+ list of events are dispatched.
The list of events is not comprehensive; in particular the default
@@ -11743,6 +11743,7 @@
Index
Simple dialogs
Steps to fire beforeunload
Suffering from bad input
+ Top-level browsing context of
Traverse the history by a delta
unfocusing steps
User prompt
From ab33a82de1bfec40a0f8b84692b59b6072043f73 Mon Sep 17 00:00:00 2001
From: Maksim Sadym
Date: Wed, 23 Oct 2024 11:24:22 +0200
Subject: [PATCH 3/8] change reference
---
index.html | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/index.html b/index.html
index fb8506dc..29e90fc3 100644
--- a/index.html
+++ b/index.html
@@ -2212,8 +2212,8 @@ Sessions
browsing context, which is set to the parent of the current
browsing context when changing browsing contexts, and an
associated current top-level browsing context , which is
- set to the top-level browsing context of the current browsing
- context , when changing browsing contexts.
+ set to the [=browsing context/top-level browsing context=] of the
+ current browsing context , when changing browsing contexts.
An HTTP session has an associated session
timeouts which is a timeouts configuration . This is
@@ -8286,10 +8286,10 @@
Ticks
content observable effects that must be consistent across
implementations. To accommodate this, the specification requires
that remote ends perform implementation-specific action
- dispatch steps on a top-level browsing context of
+ dispatch steps on a [=browsing context/top-level browsing context=] of
context , and a list of events and their properties.
These steps must be equivalent to performing the given input device
- manipulations on the top-level browsing context of the
+ manipulations on the [=browsing context/top-level browsing context=] of the
context , such that trusted events corresponding to the entries in
list of events are dispatched.
@@ -11743,7 +11743,7 @@ Index
Simple dialogs
Steps to fire beforeunload
Suffering from bad input
- Top-level browsing context of
+ Top-level browsing context
Traverse the history by a delta
unfocusing steps
User prompt
From eda93b1799fd1731a331eda74b5813258d53954a Mon Sep 17 00:00:00 2001
From: Maksim Sadym
Date: Wed, 23 Oct 2024 15:34:02 +0200
Subject: [PATCH 4/8] Introduce parent offset
---
index.html | 65 +++++++++++++++++++++++++++++++++++++++++++++++++-----
1 file changed, 59 insertions(+), 6 deletions(-)
diff --git a/index.html b/index.html
index 29e90fc3..3c484036 100644
--- a/index.html
+++ b/index.html
@@ -8286,11 +8286,11 @@ Ticks
content observable effects that must be consistent across
implementations. To accommodate this, the specification requires
that remote ends perform implementation-specific action
- dispatch steps on a [=browsing context/top-level browsing context=] of
- context , and a list of events and their properties.
- These steps must be equivalent to performing the given input device
- manipulations on the [=browsing context/top-level browsing context=] of the
- context , such that trusted events corresponding to the entries in
+ dispatch steps on a context , and a list of events
+ and their properties. These steps must be equivalent to performing the given
+ input device manipulations on the
+ [=browsing context/top-level browsing context=] of the context ,
+ such that trusted events corresponding to the entries in
list of events are dispatched.
+ Let parent navigable be navigable 's parent.
+ If parent navigable is not null:
+
+ Let parent context be parent navigable 's
+ [=navigable/document=]'s [=document/browsing context=].
+
+ Let (parentOffsetLeft, parentOffsetTop)
be result of
+ [=get parent offset=] of parent context .
+
+ Add parentOffsetLeft
to offsetLeft
.
+ Add parentOffsetTop
to offsetTop
.
+ Let containerElement be an element which navigable
+ container presents parent navigable .
+
+ Let containerRect
be the result of calling
+ {{Element/getBoundingClientRect()}} of containerElement .
+
+ Let borderLeftWidth
be the computed [=border-left-width=]
+ of containerElement
in CSS pixels .
+
+ Let borderTopWidth
be the computed [=border-top-width=] of
+ containerElement
in CSS pixels .
+
+ Add containerRect.left
+ borderLeftWidth
to
+ offsetLeft
.
+
+ Add containerRect.top
+ borderTopWidth
to
+ offsetTop
.
+
+
+ Return (offsetLeft , offsetTop ).
+ The algo does not respect transforms
+
To get coordinates relative to an origin
given source , x offset , y offset ,
@@ -8346,6 +8385,8 @@
Processing actions
options:
+ Let (parentOffsetLeft, parentOffsetTop)
be result of
+ [=get parent offset=] of browsing context .
Run the substeps of the first matching value
of origin
@@ -8393,7 +8434,7 @@ Processing actions
- Return (x , y )
+
Return (x + parentOffsetLeft , y + parentOffsetTop )
To extract an action sequence given
@@ -11715,6 +11756,7 @@
Index
Dirty value flag
Actually disabled
Document readiness
+ Browsing context
Element contexts
Enumerated attribute
Event loop
@@ -11726,6 +11768,8 @@ Index
Joint session history
Mature navigation.
Mutable
+ Document
+ Parent
Navigate
Origin-clean
An overridden reload
@@ -11871,6 +11915,15 @@ Index
CSS pixels
+ The following properties are defined in
+ the CSS Backgrounds and Borders Module Level 3: [[CSS3-BACKGROUND]]
+
+
+
The following properties are defined in
the CSS Basic Box Model Level 3 specification: [[CSS3-BOX]]
From 403bdbbc393a25660a0aef8e117dcf7ab68d3079 Mon Sep 17 00:00:00 2001
From: Maksim Sadym
Date: Wed, 23 Oct 2024 15:37:58 +0200
Subject: [PATCH 5/8] add todo
---
index.html | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/index.html b/index.html
index 3c484036..cf642e8c 100644
--- a/index.html
+++ b/index.html
@@ -8376,7 +8376,8 @@ Processing actions
Return (offsetLeft , offsetTop ).
- The algo does not respect transforms
+ TODO: clarify if the algo respect transforms?
+ TODO: respect iframe's viewport's intersections
To get coordinates relative to an origin
From 88e7b6bdf3b9617008ab80ca8aa8239fd2cc97e2 Mon Sep 17 00:00:00 2001
From: Maksim Sadym
Date: Wed, 23 Oct 2024 15:59:22 +0200
Subject: [PATCH 6/8] fix check
---
index.html | 15 +++++++++------
1 file changed, 9 insertions(+), 6 deletions(-)
diff --git a/index.html b/index.html
index cf642e8c..2bccf0d7 100644
--- a/index.html
+++ b/index.html
@@ -8339,12 +8339,14 @@ Processing actions
input JSON, such that the actions to be performed in a single tick
are grouped together.
-To get parent offset of context :
+
To get parent offset of context :
Let offsetLeft equal to 0 and offsetTop equal to 0.
- Let navigable be context 's active document 's
- [=navigable/parent=].
+
+ Let navigable be context 's active document 's
+ [=navigable/parent=].
+
Let parent navigable be navigable 's parent.
If parent navigable is not null:
@@ -8375,10 +8377,11 @@ Processing actions
offsetTop
.
+
Return (offsetLeft , offsetTop ).
- TODO: clarify if the algo respect transforms?
- TODO: respect iframe's viewport's intersections
-
+
+ TODO: clarify if the algo respect transforms?
+ TODO: respect iframe's viewport's intersections
To get coordinates relative to an origin
given source , x offset , y offset ,
From adf94adc5169fdf963461f5469fa37fb937c9548 Mon Sep 17 00:00:00 2001
From: Maksim Sadym <69349599+sadym-chromium@users.noreply.github.com>
Date: Thu, 24 Oct 2024 10:08:40 +0200
Subject: [PATCH 7/8] Update index.html
Co-authored-by: Alex Rudenko
---
index.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/index.html b/index.html
index 2bccf0d7..cf229ec7 100644
--- a/index.html
+++ b/index.html
@@ -8389,7 +8389,7 @@ Processing actions
options:
- Let (parentOffsetLeft, parentOffsetTop)
be result of
+ Let (parentOffsetLeft, parentOffsetTop)
be the result of
[=get parent offset=] of browsing context .
Run the substeps of the first matching value
of origin
From 6cdef6547f61860c1647030d5704e50cb2389281 Mon Sep 17 00:00:00 2001
From: Maksim Sadym <69349599+sadym-chromium@users.noreply.github.com>
Date: Thu, 24 Oct 2024 10:08:47 +0200
Subject: [PATCH 8/8] Update index.html
Co-authored-by: Alex Rudenko
---
index.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/index.html b/index.html
index cf229ec7..d8aa0d8a 100644
--- a/index.html
+++ b/index.html
@@ -8353,7 +8353,7 @@ Processing actions
Let parent context be parent navigable 's
[=navigable/document=]'s [=document/browsing context=].
- Let (parentOffsetLeft, parentOffsetTop)
be result of
+ Let (parentOffsetLeft, parentOffsetTop)
be the result of
[=get parent offset=] of parent context .
Add parentOffsetLeft
to offsetLeft
.