aboutsummaryrefslogtreecommitdiff
path: root/files/fr/web/css/mask-position
diff options
context:
space:
mode:
Diffstat (limited to 'files/fr/web/css/mask-position')
-rw-r--r--files/fr/web/css/mask-position/index.html12
1 files changed, 3 insertions, 9 deletions
diff --git a/files/fr/web/css/mask-position/index.html b/files/fr/web/css/mask-position/index.html
index afbcb38828..43d8db0a4a 100644
--- a/files/fr/web/css/mask-position/index.html
+++ b/files/fr/web/css/mask-position/index.html
@@ -55,7 +55,7 @@ mask-position: unset;
<h3 id="CSS">CSS</h3>
-<pre class="brush: css; highlight[13]">#wrapper {
+<pre class="brush: css">#wrapper {
border: 1px solid black;
width: 250px;
height: 250px;
@@ -72,10 +72,7 @@ mask-position: unset;
}
</pre>
-<div class="hidden">
-<h3 id="HTML">HTML</h3>
-
-<pre class="brush: html">&lt;div id="wrapper"&gt;
+<pre class="brush: html hidden">&lt;div id="wrapper"&gt;
&lt;div id="masked"&gt;
&lt;/div&gt;
&lt;/div&gt;
@@ -91,14 +88,11 @@ mask-position: unset;
&lt;/select&gt;
</pre>
-<h3 id="JavaScript">JavaScript</h3>
-
-<pre class="brush: js">var maskPosition = document.getElementById("maskPosition");
+<pre class="brush: js hidden">var maskPosition = document.getElementById("maskPosition");
maskPosition.addEventListener("change", function (evt) {
document.getElementById("masked").style.maskPosition = evt.target.value;
});
</pre>
-</div>
<h3 id="Résultat">Résultat</h3>