Skip to content

Commit

Permalink
define iframe events dispatching implementation-specific
Browse files Browse the repository at this point in the history
  • Loading branch information
sadym-chromium committed Oct 24, 2024
1 parent b8987a1 commit 05c4e75
Showing 1 changed file with 3 additions and 60 deletions.
63 changes: 3 additions & 60 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2212,8 +2212,8 @@ <h2>Sessions</h2>
browsing context</dfn>, which is set to the parent of the <a>current
browsing context</a> when changing browsing contexts, and an
associated <dfn>current top-level browsing context</dfn>, which is
set to the [=browsing context/top-level browsing context=] of the
<a>current browsing context</a>, when changing browsing contexts.</p>
set to the top-browsing context ancestor of the <a>current browsing
context</a>, when changing browsing contexts.</p>

<p>An <a>HTTP session</a> has an associated <dfn>session
timeouts</dfn> which is a <a>timeouts configuration</a>. This is
Expand Down Expand Up @@ -8339,58 +8339,13 @@ <h3>Processing actions</h3>
input JSON, such that the actions to be performed in a single <a>tick</a>
are grouped together.

<p>To <dfn>get parent offset</dfn> of <var>context</var>:
<ol class="algorithm">
<li>Let <var>offsetLeft</var> equal to 0 and <var>offsetTop</var> equal to 0.
</li>
<li>
Let <var>navigable</var> be <var>context</var>'s <a>active document</a>'s
[=navigable/parent=].
</li>
<li>Let <var>parent navigable</var> be <var>navigable</var>'s parent.</li>
<li>If <var>parent navigable</var> is not null:
<ol>
<li> Let <var>parent context</var> be <var>parent navigable</var>'s
[=navigable/document=]'s [=document/browsing context=].
</li>
<li>Let <code>(parentOffsetLeft, parentOffsetTop)</code> be the result of
[=get parent offset=] of <var>parent context</var>.
</li>
<li>Add <code>parentOffsetLeft</code> to <code>offsetLeft</code>.</li>
<li>Add <code>parentOffsetTop</code> to <code>offsetTop</code>.</li>
<li>Let <var>containerElement</var> be an <a>element</a> which <a>navigable
container</a> presents <var>parent navigable</var>.
</li>
<li>Let <code>containerRect</code> be the result of calling
{{Element/getBoundingClientRect()}} of <var>containerElement</var>.
</li>
<li>Let <code>borderLeftWidth</code> be the computed [=border-left-width=]
of <code>containerElement</code> in <a>CSS pixels</a>.
</li>
<li>Let <code>borderTopWidth</code> be the computed [=border-top-width=] of
<code>containerElement</code> in <a>CSS pixels</a>.
</li>
<li>Add <code>containerRect.left</code> + <code>borderLeftWidth</code> to
<code>offsetLeft</code>.
</li>
<li>Add <code>containerRect.top</code> + <code>borderTopWidth</code> to
<code>offsetTop</code>.
</li>
</ol>
</li>
<li>Return (<var>offsetLeft</var>, <var>offsetTop</var>).</li>
</ol>
<span class=issue>TODO: clarify if the algo respect transforms?</span>
<span class=issue>TODO: respect iframe's viewport's intersections</span>

<p>To <dfn>get coordinates relative to an origin</dfn>
given <var>source</var>, <var>x offset</var>, <var>y offset</var>,
<var>origin</var>, <var>browsing context</var>, and <var>actions
options</var>:

<ol class="algorithm">
<li>Let <code>(parentOffsetLeft, parentOffsetTop)</code> be the result of
[=get parent offset=] of <var>browsing context</var>.</li>
<li><p>Run the substeps of the first matching value
of <var>origin</var>
<dl>
Expand Down Expand Up @@ -8438,7 +8393,7 @@ <h3>Processing actions</h3>
</dd>
</dl>

<li><p>Return (<var>x</var> + <var>parentOffsetLeft</var>, <var>y</var> + <var>parentOffsetTop</var>)
<li><p>Return (<var>x</var>, <var>y</var>)
</ol>

<p>To <dfn>extract an action sequence</dfn> given
Expand Down Expand Up @@ -11760,7 +11715,6 @@ <h2>Index</h2>
<!-- Dirty value flag --> <li><dfn><a href=https://html.spec.whatwg.org/#concept-fe-dirty>Dirty value flag</a></dfn>
<!-- Disabled --> <li><dfn><a href=https://html.spec.whatwg.org/#concept-element-disabled>Actually disabled</a></dfn>
<!-- Document readiness --> <li><dfn><a href=https://html.spec.whatwg.org/#current-document-readiness>Document readiness</a></dfn>
<!-- Document's browsing context --> <li><dfn data-dfn-for="document"><a href=https://html.spec.whatwg.org/#concept-document-bc>Browsing context</a></dfn>
<!-- Element contexts --> <li><dfn data-lt="element context"><a href=https://html.spec.whatwg.org/#concept-element-contexts>Element contexts</a></dfn>
<!-- Enumerated attribute --> <li><dfn><a href=https://html.spec.whatwg.org/#enumerated-attribute>Enumerated attribute</a></dfn>
<!-- Event loop --> <li><dfn><a href=https://html.spec.whatwg.org/#event-loop>Event loop</a></dfn>
Expand All @@ -11772,8 +11726,6 @@ <h2>Index</h2>
<!-- Joint session history --> <li><dfn><a href=https://html.spec.whatwg.org/#joint-session-history>Joint session history</a></dfn>
<!-- Mature (navigation) --> <li><dfn data-lt="matured"><a href=https://html.spec.whatwg.org/#concept-navigate-mature>Mature</a></dfn> navigation.
<!-- Mutable --> <li><dfn><a href=https://html.spec.whatwg.org/#concept-fe-mutable>Mutable</a></dfn>
<!-- Navigable's document --> <li><dfn data-dfn-for="navigable"><a href=https://html.spec.whatwg.org/#nav-document>Document</a></dfn>
<!-- Navigable's parent --> <li><dfn data-dfn-for="navigable"><a href=https://html.spec.whatwg.org/#nav-parent>Parent</a></dfn>
<!-- Navigate --> <li><dfn data-lt="navigating|navigation"><a href=https://html.spec.whatwg.org/#navigate>Navigate</a></dfn>
<!-- Origin-clean --> <li><dfn><a href=https://html.spec.whatwg.org/#concept-canvas-origin-clean>Origin-clean</a></dfn>
<!-- Overridden reload --> <li><dfn><a href="https://html.spec.whatwg.org/multipage/dom.html#an-overridden-reload">An overridden reload</a></dfn>
Expand Down Expand Up @@ -11919,15 +11871,6 @@ <h2>Index</h2>
<!-- CSS pixels --> <li><dfn><a href=https://www.w3.org/TR/css-values-3/#px>CSS pixels</a></dfn>
</ul>

<dd>The following properties are defined in
the CSS Backgrounds and Borders Module Level 3: [[CSS3-BACKGROUND]]
<ul>
<!-- 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
</ul>
<ul>
<!-- 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
</ul>

<dd>The following properties are defined in
the CSS Basic Box Model Level 3 specification: [[CSS3-BOX]]
<ul>
Expand Down

0 comments on commit 05c4e75

Please sign in to comment.