Skip to content
Prev Previous commit
Reinstate monkey-patch
  • Loading branch information
noamr committed Jan 31, 2024
commit debe3f44dbe28a0b655b77d21a96e1eac94cbd83
6 changes: 0 additions & 6 deletions css-view-transitions-1/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -1225,8 +1225,6 @@ urlPrefix: https://wicg.github.io/navigation-api/; type: interface;
Note: These are used to update, and later remove styles
from a [=/document=]'s [=document/dynamic view transition style sheet=].

Other specs can supply <dfn>additional capture steps</dfn>, which is an algorithm that acepts a [=captured element=] and an [=element=].

## [=Perform pending transition operations=] ## {#perform-pending-transition-operations-algorithm}

<div algorithm>
Expand Down Expand Up @@ -1400,8 +1398,6 @@ urlPrefix: https://wicg.github.io/navigation-api/; type: interface;

1. Set |namedElements|[|transitionName|] to |capture|.

1. Perform [=additional capture steps=] given |capture| and |element|.

1. [=list/For each=] |element| in |captureElements|:

1. Set |element|'s [=captured in a view transition=] to false.
Expand Down Expand Up @@ -1443,8 +1439,6 @@ urlPrefix: https://wicg.github.io/navigation-api/; type: interface;
This might not be the right layering for all cases. See <a href="https://github.com/w3c/csswg-drafts/issues/8941">issue 8941</a>.

1. Set |namedElements|[|transitionName|]'s [=new element=] to |element|.

1. Perform [=additional capture steps=] given |namedElements|[|transitionName|] and |element|.
</div>

### [=Setup transition pseudo-elements=] ### {#setup-transition-pseudo-elements-algorithm}
Expand Down
5 changes: 3 additions & 2 deletions css-view-transitions-2/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ spec:css-view-transitions-1;
text: call the update callback; type: dfn;
text: perform pending transition operations; type: dfn;
text: setup view transition; type: dfn;
text: additional capture steps; type: dfn;
text: named view transition pseudo-element; type: dfn;
spec:dom; type:dfn; text:document
spec:css22; type:dfn; text:element
Expand Down Expand Up @@ -509,9 +508,11 @@ The [=captured element=] struct should contain these fields, in addition to the

## Algorithms to capture 'view-transition-class': ## {#vt-class-algorithms}
<div algorithm="additional capture steps">
This spec provides the following [=additional capture steps=] given a [=captured element=] |capture| and an [=element=] |element|:
When capturing the old or new state for an element, perform the following steps given a [=captured element=] |capture| and an [=element=] |element|:

1. Set |capture|'s [=captured element/class list=] to the [=computed value=] of |element|'s 'view-transition-class'.

Note: This is written in a monkey-patch manner, and will be merged into the algorithm once the L1 spec graduates.
</div>

## Monkey patches to HTML ## {#monkey-patch-to-html}
Expand Down