@@ -8286,11 +8286,11 @@ <h3>Ticks</h3>
8286
8286
content observable effects that must be consistent across
8287
8287
implementations. To accommodate this, the specification requires
8288
8288
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
8294
8294
< var > list of events</ var > are dispatched.
8295
8295
8296
8296
< aside class =note >
@@ -8339,13 +8339,54 @@ <h3>Processing actions</h3>
8339
8339
input JSON, such that the actions to be performed in a single < a > tick</ a >
8340
8340
are grouped together.
8341
8341
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 >
8342
8381
8343
8382
< p > To < dfn > get coordinates relative to an origin</ dfn >
8344
8383
given < var > source</ var > , < var > x offset</ var > , < var > y offset</ var > ,
8345
8384
< var > origin</ var > , < var > browsing context</ var > , and < var > actions
8346
8385
options</ var > :
8347
8386
8348
8387
< ol class ="algorithm ">
8388
+ < li > Let < code > (parentOffsetLeft, parentOffsetTop)</ code > be result of
8389
+ [=get parent offset=] of < var > browsing context</ var > .</ li >
8349
8390
< li > < p > Run the substeps of the first matching value
8350
8391
of < var > origin</ var >
8351
8392
< dl >
@@ -8393,7 +8434,7 @@ <h3>Processing actions</h3>
8393
8434
</ dd >
8394
8435
</ dl >
8395
8436
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 > )
8397
8438
</ ol >
8398
8439
8399
8440
< p > To < dfn > extract an action sequence</ dfn > given
@@ -11715,6 +11756,7 @@ <h2>Index</h2>
11715
11756
<!-- Dirty value flag --> < li > < dfn > < a href =https://html.spec.whatwg.org/#concept-fe-dirty > Dirty value flag</ a > </ dfn >
11716
11757
<!-- Disabled --> < li > < dfn > < a href =https://html.spec.whatwg.org/#concept-element-disabled > Actually disabled</ a > </ dfn >
11717
11758
<!-- 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 >
11718
11760
<!-- Element contexts --> < li > < dfn data-lt ="element context "> < a href =https://html.spec.whatwg.org/#concept-element-contexts > Element contexts</ a > </ dfn >
11719
11761
<!-- Enumerated attribute --> < li > < dfn > < a href =https://html.spec.whatwg.org/#enumerated-attribute > Enumerated attribute</ a > </ dfn >
11720
11762
<!-- Event loop --> < li > < dfn > < a href =https://html.spec.whatwg.org/#event-loop > Event loop</ a > </ dfn >
@@ -11726,6 +11768,8 @@ <h2>Index</h2>
11726
11768
<!-- Joint session history --> < li > < dfn > < a href =https://html.spec.whatwg.org/#joint-session-history > Joint session history</ a > </ dfn >
11727
11769
<!-- Mature (navigation) --> < li > < dfn data-lt ="matured "> < a href =https://html.spec.whatwg.org/#concept-navigate-mature > Mature</ a > </ dfn > navigation.
11728
11770
<!-- 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 >
11729
11773
<!-- Navigate --> < li > < dfn data-lt ="navigating|navigation "> < a href =https://html.spec.whatwg.org/#navigate > Navigate</ a > </ dfn >
11730
11774
<!-- Origin-clean --> < li > < dfn > < a href =https://html.spec.whatwg.org/#concept-canvas-origin-clean > Origin-clean</ a > </ dfn >
11731
11775
<!-- 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>
11871
11915
<!-- CSS pixels --> < li > < dfn > < a href =https://www.w3.org/TR/css-values-3/#px > CSS pixels</ a > </ dfn >
11872
11916
</ ul >
11873
11917
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
+
11874
11927
< dd > The following properties are defined in
11875
11928
the CSS Basic Box Model Level 3 specification: [[CSS3-BOX]]
11876
11929
< ul >
0 commit comments