@@ -8286,11 +8286,11 @@ <h3>Ticks</h3>
82868286 content observable effects that must be consistent across
82878287 implementations. To accommodate this, the specification requires
82888288 that < a > remote ends</ a > < dfn > perform implementation-specific action
8289- dispatch steps</ dfn > on a [=browsing context/top-level browsing context=] of
8290- < var > context </ var > , and a < var > list of events </ var > and their properties.
8291- These steps must be equivalent to performing the given input device
8292- manipulations on the [=browsing context/top-level browsing context=] of the
8293- < var > context </ var > , such that trusted events corresponding to the entries in
8289+ dispatch steps</ dfn > on a < var > context</ var > , and a < var > list of events </ var >
8290+ and their properties. These steps must be equivalent to performing the given
8291+ input device manipulations on the
8292+ [=browsing context/top-level browsing context=] of the < var > context </ var > ,
8293+ such that trusted events corresponding to the entries in
82948294 < var > list of events</ var > are dispatched.
82958295
82968296< aside class =note >
@@ -8339,13 +8339,54 @@ <h3>Processing actions</h3>
83398339 input JSON, such that the actions to be performed in a single < a > tick</ a >
83408340 are grouped together.
83418341
8342+ < p > To < dfn > get parent offset</ dfn > of < var > context</ var > :
8343+ < ol class ="algorithm ">
8344+ < li > Let < var > offsetLeft</ var > equal to 0 and < var > offsetTop</ var > equal to 0.
8345+ </ li >
8346+ Let < var > navigable</ var > be < var > context</ var > 's < a > active document</ a > 's
8347+ [=navigable/parent=]. </ p > </ li >
8348+ < li > Let < var > parent navigable</ var > be < var > navigable</ var > 's parent.</ li >
8349+ < li > If < var > parent navigable</ var > is not null:
8350+ < ol >
8351+ < li > Let < var > parent context</ var > be < var > parent navigable</ var > 's
8352+ [=navigable/document=]'s [=document/browsing context=].
8353+ </ li >
8354+ < li > Let < code > (parentOffsetLeft, parentOffsetTop)</ code > be result of
8355+ [=get parent offset=] of < var > parent context</ var > .
8356+ </ li >
8357+ < li > Add < code > parentOffsetLeft</ code > to < code > offsetLeft</ code > .</ li >
8358+ < li > Add < code > parentOffsetTop</ code > to < code > offsetTop</ code > .</ li >
8359+ < li > Let < var > containerElement</ var > be an < a > element</ a > which < a > navigable
8360+ container</ a > presents < var > parent navigable</ var > .
8361+ </ li >
8362+ < li > Let < code > containerRect</ code > be the result of calling
8363+ {{Element/getBoundingClientRect()}} of < var > containerElement</ var > .
8364+ </ li >
8365+ < li > Let < code > borderLeftWidth</ code > be the computed [=border-left-width=]
8366+ of < code > containerElement</ code > in < a > CSS pixels</ a > .
8367+ </ li >
8368+ < li > Let < code > borderTopWidth</ code > be the computed [=border-top-width=] of
8369+ < code > containerElement</ code > in < a > CSS pixels</ a > .
8370+ </ li >
8371+ < li > Add < code > containerRect.left</ code > + < code > borderLeftWidth</ code > to
8372+ < code > offsetLeft</ code > .
8373+ </ li >
8374+ < li > Add < code > containerRect.top</ code > + < code > borderTopWidth</ code > to
8375+ < code > offsetTop</ code > .
8376+ </ li >
8377+ </ ol >
8378+ < li > Return (< var > offsetLeft</ var > , < var > offsetTop</ var > ).</ li >
8379+ < span class =issue > The algo does not respect transforms</ span >
8380+ </ ol >
83428381
83438382< p > To < dfn > get coordinates relative to an origin</ dfn >
83448383given < var > source</ var > , < var > x offset</ var > , < var > y offset</ var > ,
83458384< var > origin</ var > , < var > browsing context</ var > , and < var > actions
83468385options</ var > :
83478386
83488387< ol class ="algorithm ">
8388+ < li > Let < code > (parentOffsetLeft, parentOffsetTop)</ code > be result of
8389+ [=get parent offset=] of < var > browsing context</ var > .</ li >
83498390 < li > < p > Run the substeps of the first matching value
83508391 of < var > origin</ var >
83518392 < dl >
@@ -8393,7 +8434,7 @@ <h3>Processing actions</h3>
83938434 </ dd >
83948435 </ dl >
83958436
8396- < li > < p > Return (< var > x</ var > , < var > y</ var > )
8437+ < li > < p > Return (< var > x</ var > + < var > parentOffsetLeft </ var > , < var > y</ var > + < var > parentOffsetTop </ var > )
83978438</ ol >
83988439
83998440< p > To < dfn > extract an action sequence</ dfn > given
@@ -11715,6 +11756,7 @@ <h2>Index</h2>
1171511756 <!-- Dirty value flag --> < li > < dfn > < a href =https://html.spec.whatwg.org/#concept-fe-dirty > Dirty value flag</ a > </ dfn >
1171611757 <!-- Disabled --> < li > < dfn > < a href =https://html.spec.whatwg.org/#concept-element-disabled > Actually disabled</ a > </ dfn >
1171711758 <!-- Document readiness --> < li > < dfn > < a href =https://html.spec.whatwg.org/#current-document-readiness > Document readiness</ a > </ dfn >
11759+ <!-- Document's browsing context --> < li > < dfn data-dfn-for ="document "> < a href =https://html.spec.whatwg.org/#concept-document-bc > Browsing context</ a > </ dfn >
1171811760 <!-- Element contexts --> < li > < dfn data-lt ="element context "> < a href =https://html.spec.whatwg.org/#concept-element-contexts > Element contexts</ a > </ dfn >
1171911761 <!-- Enumerated attribute --> < li > < dfn > < a href =https://html.spec.whatwg.org/#enumerated-attribute > Enumerated attribute</ a > </ dfn >
1172011762 <!-- Event loop --> < li > < dfn > < a href =https://html.spec.whatwg.org/#event-loop > Event loop</ a > </ dfn >
@@ -11726,6 +11768,8 @@ <h2>Index</h2>
1172611768 <!-- Joint session history --> < li > < dfn > < a href =https://html.spec.whatwg.org/#joint-session-history > Joint session history</ a > </ dfn >
1172711769 <!-- Mature (navigation) --> < li > < dfn data-lt ="matured "> < a href =https://html.spec.whatwg.org/#concept-navigate-mature > Mature</ a > </ dfn > navigation.
1172811770 <!-- Mutable --> < li > < dfn > < a href =https://html.spec.whatwg.org/#concept-fe-mutable > Mutable</ a > </ dfn >
11771+ <!-- Navigable's document --> < li > < dfn data-dfn-for ="navigable "> < a href =https://html.spec.whatwg.org/#nav-document > Document</ a > </ dfn >
11772+ <!-- Navigable's parent --> < li > < dfn data-dfn-for ="navigable "> < a href =https://html.spec.whatwg.org/#nav-parent > Parent</ a > </ dfn >
1172911773 <!-- Navigate --> < li > < dfn data-lt ="navigating|navigation "> < a href =https://html.spec.whatwg.org/#navigate > Navigate</ a > </ dfn >
1173011774 <!-- Origin-clean --> < li > < dfn > < a href =https://html.spec.whatwg.org/#concept-canvas-origin-clean > Origin-clean</ a > </ dfn >
1173111775 <!-- Overridden reload --> < li > < dfn > < a href ="https://html.spec.whatwg.org/multipage/dom.html#an-overridden-reload "> An overridden reload</ a > </ dfn >
@@ -11871,6 +11915,15 @@ <h2>Index</h2>
1187111915 <!-- CSS pixels --> < li > < dfn > < a href =https://www.w3.org/TR/css-values-3/#px > CSS pixels</ a > </ dfn >
1187211916 </ ul >
1187311917
11918+ < dd > The following properties are defined in
11919+ the CSS Backgrounds and Borders Module Level 3: [[CSS3-BACKGROUND]]
11920+ < ul >
11921+ <!-- border-left-width property --> < li > The < dfn > < a href =https://drafts.csswg.org/css-backgrounds-3/#propdef-border-left-width > < code > border-left-width</ code > </ a > </ dfn > property
11922+ </ ul >
11923+ < ul >
11924+ <!-- border-top-width property --> < li > The < dfn > < a href =https://drafts.csswg.org/css-backgrounds-3/#propdef-border-left-width > < code > border-top-width</ code > </ a > </ dfn > property
11925+ </ ul >
11926+
1187411927 < dd > The following properties are defined in
1187511928 the CSS Basic Box Model Level 3 specification: [[CSS3-BOX]]
1187611929 < ul >
0 commit comments