aboutsummaryrefslogtreecommitdiff
path: root/files/fr/web/css/clip-path
diff options
context:
space:
mode:
authorSphinxKnight <SphinxKnight@users.noreply.github.com>2021-09-17 20:15:31 +0200
committerGitHub <noreply@github.com>2021-09-17 20:15:31 +0200
commit3335211db9ecb67dc0ccd9c4a7c1eb607ffe359f (patch)
tree09fe8f8a5fae5235b62918e8b7161fd34480b8d0 /files/fr/web/css/clip-path
parent3518481e9190f19bbf81741704f45cb3c1761758 (diff)
downloadtranslated-content-3335211db9ecb67dc0ccd9c4a7c1eb607ffe359f.tar.gz
translated-content-3335211db9ecb67dc0ccd9c4a7c1eb607ffe359f.tar.bz2
translated-content-3335211db9ecb67dc0ccd9c4a7c1eb607ffe359f.zip
Prepare CSS section for Markdown conversion (#2307)
* Removes summary / seoSummary classes * Remove div class=hidden and some notranslate * Remove hidden paragraphs for live sample * Remove hidden paragraphs for live sample - take 2 * Remove other hidden div and p - updated w/ en-US when necessary * Remove ids * Remove notranslate class * Fix typo which broke build * remove div class='index' * remove useless <span style=...> * remove non typographical sups * remove non typographical subs * remove blockindicator and fix some div.note * fix build :/ * remove useless classes * fix build - again :x * fix unhandled elements 1/N + embedlivesample build fail * fix div.warning * Fix fixable flaws - hoping to reduce error conversion * Remove unecessary images (same as en-US) * fix div notes * fix warnings * fix some dl handling * fix dls * Fix a bunch of conversion errors * rm unhandled figures * Fix other set of issues and revamp easing-function page * Fix some one-offs conversion errors (incl. deki files) * fix the rest of one-off conversion issues * Fix last dl standing
Diffstat (limited to 'files/fr/web/css/clip-path')
-rw-r--r--files/fr/web/css/clip-path/index.html14
1 files changed, 3 insertions, 11 deletions
diff --git a/files/fr/web/css/clip-path/index.html b/files/fr/web/css/clip-path/index.html
index 0e59f1bbec..1888fb3c17 100644
--- a/files/fr/web/css/clip-path/index.html
+++ b/files/fr/web/css/clip-path/index.html
@@ -14,8 +14,6 @@ translation_of: Web/CSS/clip-path
<div>{{EmbedInteractiveExample("pages/css/clip-path.html")}}</div>
-<p class="hidden">Le code source de cet exemple interactif est disponible dans un dépôt GitHub. Si vous souhaitez contribuez à ces exemples, n'hésitez pas à cloner <a href="https://github.com/mdn/interactive-examples">https://github.com/mdn/interactive-examples</a> et à envoyer une <em>pull request</em> !</p>
-
<div class="note">
<p><strong>Note :</strong> La propriété <code>clip-path</code> remplace la propriété {{cssxref("clip")}} désormais dépréciée.</p>
</div>
@@ -98,8 +96,7 @@ clip-path: unset;
<h3 id="Comparaison_entre_HTML_et_SVG">Comparaison entre HTML et SVG</h3>
-<div class="hidden" id="clip-path">
-<pre class="brush: html">&lt;svg class="defs"&gt;
+<pre class="brush: html hidden">&lt;svg class="defs"&gt;
&lt;defs&gt;
&lt;clipPath id="myPath" clipPathUnits="objectBoundingBox"&gt;
&lt;path d="M0.5,1 C0.5,1,0,0.7,0,0.3 A0.25,0.25,1,1,1,0.5,0.3 A0.25,0.25,1,1,1,1,0.3 C1,0.7,0.5,1,0.5,1 Z" /&gt;
@@ -518,9 +515,8 @@ svg text {
svg text.em {
font-style: italic;
}</pre>
-</div>
-<p>{{EmbedLiveSample("clip-path", "100%", 800, "", "", "example-outcome-frame")}}</p>
+<p>{{EmbedLiveSample("Comparaison_entre_HTML_et_SVG", "100%", 800, "", "", "example-outcome-frame")}}</p>
<h3 id="Exemple_complet">Exemple complet</h3>
@@ -556,15 +552,11 @@ svg text.em {
}
</pre>
-<div class="hidden">
-<h4 id="JavaScript">JavaScript</h4>
-
-<pre class="brush: js">var clipPathSelect = document.getElementById("clipPath");
+<pre class="brush: js hidden">var clipPathSelect = document.getElementById("clipPath");
clipPathSelect.addEventListener("change", function (evt) {
document.getElementById("clipped").style.clipPath = evt.target.value;
});
</pre>
-</div>
<h4 id="Résultat">Résultat</h4>