Skip to content

Commit

Permalink
Text Layout Algorithm: Fix incorrect attribute/variable names in "Adj…
Browse files Browse the repository at this point in the history
…ust positions: dx, dy"

Fixes w3c#271
  • Loading branch information
tkent-google committed Apr 27, 2021
1 parent 1cd12e8 commit 80294dd
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions master/text.html
Original file line number Diff line number Diff line change
Expand Up @@ -3161,19 +3161,19 @@ <h2 id="TextLayoutAlgorithm">Text layout – Algorithm</h2>
<ol>
<li>
Let <var>shift</var> be the cumulative <var>x</var> and
<var>y</var> shifts due to <a>'tspan/x'</a> and <a>'tspan/y'</a>
<var>y</var> shifts due to <a>'tspan/dx'</a> and <a>'tspan/dy'</a>
attributes, initialized to (0,0).
</li>
<li>
For each array element with index <var>i</var> in result:
<ol>
<li>
If <var>resolve_x</var>[<var>i</var>] is unspecified, set it to 0.
If <var>resolve_y</var>[<var>i</var>] is unspecified, set it to 0.
If <var>resolve_dx</var>[<var>i</var>] is unspecified, set it to 0.
If <var>resolve_dy</var>[<var>i</var>] is unspecified, set it to 0.
</li>
<li>
Let <var>shift.x</var> = <var>shift.x</var> + <var>resolve_x</var>[<var>i</var>]
and <var>shift.y</var> = <var>shift.y</var> + <var>resolve_y</var>[<var>i</var>].
Let <var>shift.x</var> = <var>shift.x</var> + <var>resolve_dx</var>[<var>i</var>]
and <var>shift.y</var> = <var>shift.y</var> + <var>resolve_dy</var>[<var>i</var>].
</li>
<li>
Let <var>result</var>[<var>i</var>].x = CSS_positions[<var>i</var>].x + shift.x
Expand Down

0 comments on commit 80294dd

Please sign in to comment.