@@ -81197,6 +81197,25 @@ dictionary <dfn dictionary>DragEventInit</dfn> : <span>MouseEventInit</span> {
81197
81197
display:none and other display values is not possible.</p>
81198
81198
</div>
81199
81199
81200
+ <div class="example">
81201
+ <p>The following is an example of an animated pop-up:</p>
81202
+
81203
+ <pre><code class="html"><div popup="auto" id="foo">
81204
+ A fancy pop-up with no Javascript
81205
+ </div>
81206
+ <style>
81207
+ [popup] {
81208
+ opacity: 0;
81209
+ transform: translate(-100px,100px);
81210
+ transition: all 1.5s;
81211
+ }
81212
+ [popup]:open {
81213
+ transform: translate(0,0);
81214
+ opacity: 1;
81215
+ }
81216
+ </style></code></pre>
81217
+ </div>
81218
+
81200
81219
<p>Every element which is not in the <span data-x="attr-popup-none-state">no pop-up state</span>
81201
81220
has the following members:</p>
81202
81221
<ul>
@@ -81916,22 +81935,22 @@ dictionary <dfn dictionary>DragEventInit</dfn> : <span>MouseEventInit</span> {
81916
81935
81917
81936
<pre><code class="html"><div popup=auto id="foo">
81918
81937
This is a pop-up!
81919
- <div>
81938
+ </ div>
81920
81939
81921
81940
<button popupshowtarget="foo">
81922
81941
Show a pop-up
81923
- <button></code></pre>
81942
+ </ button></code></pre>
81924
81943
81925
81944
<p>The following shows how <code data-x="attr-popup-toggle-target">popuptoggletarget</code> can
81926
81945
open and close a manual pop-up, which can't be closed with light dismiss:</p>
81927
81946
81928
81947
<pre><code class="html"><div popup=manual id="foo">
81929
81948
This is a pop-up!
81930
- <div>
81949
+ </ div>
81931
81950
81932
81951
<button popuptoggletarget="foo">
81933
81952
Show or hide a pop-up
81934
- <button></code></pre>
81953
+ </ button></code></pre>
81935
81954
</div>
81936
81955
81937
81956
<p>The <span>pop-up target attributes</span> allow certain types of buttons to show and hide
0 commit comments