aboutsummaryrefslogtreecommitdiff
path: root/files/fr/web/css/_doublecolon_target-text/index.md
diff options
context:
space:
mode:
authorjulieng <julien.gattelier@gmail.com>2021-09-17 20:58:15 +0200
committerSphinxKnight <SphinxKnight@users.noreply.github.com>2021-10-12 07:57:33 +0200
commit149319bb8c7b1394a443f0877c3460cd362aa815 (patch)
treed534abb0cbc87d5e224836e9d6b888aa58564aa0 /files/fr/web/css/_doublecolon_target-text/index.md
parenteb9de0363cb273b54d3f5402bbf4e3bc03c60971 (diff)
downloadtranslated-content-149319bb8c7b1394a443f0877c3460cd362aa815.tar.gz
translated-content-149319bb8c7b1394a443f0877c3460cd362aa815.tar.bz2
translated-content-149319bb8c7b1394a443f0877c3460cd362aa815.zip
move *.html to *.md
Diffstat (limited to 'files/fr/web/css/_doublecolon_target-text/index.md')
-rw-r--r--files/fr/web/css/_doublecolon_target-text/index.md43
1 files changed, 43 insertions, 0 deletions
diff --git a/files/fr/web/css/_doublecolon_target-text/index.md b/files/fr/web/css/_doublecolon_target-text/index.md
new file mode 100644
index 0000000000..b576694e50
--- /dev/null
+++ b/files/fr/web/css/_doublecolon_target-text/index.md
@@ -0,0 +1,43 @@
+---
+title: '::target-text'
+slug: 'Web/CSS/::target-text'
+browser-compat: css.selectors.target-text
+translation_of: 'Web/CSS/::target-text'
+---
+<div>{{CSSRef}}{{SeeCompatTable}}</div>
+
+<p>Le <a href="/fr/docs/Web/CSS/Pseudo-elements">pseudo-élément</a> <a href="/en-US/docs/Web/CSS">CSS</a> <strong><code>::target-text</code></strong> représente le texte vers lequel l'écran vient de défiler, dans le cas où le navigateur prend en charge les fragments <code>scroll-to-text</code>. Il permet aux auteurs de mettre en valeur cette section de texte.</p>
+
+<pre class="brush: css no-line-numbers">::target-text {
+  background-color: pink;
+}</pre>
+
+<h2 id="syntax">Syntaxe</h2>
+
+<p>{{csssyntax}}</p>
+
+<h2 id="examples">Exemples</h2>
+
+<h3 id="highlighting_scroll-to-text">Mise en valeur de scroll-to-text</h3>
+
+<pre class="brush: css no-line-numbers">::target-text {
+ background-color: rebeccapurple;
+ color: white;
+ font-weight: bold;
+}</pre>
+
+<p>Pour voir ce code CSS en action, suivez ce lien vers la <a href="https://mdn.github.io/css-examples/target-text/index.html#:~:text=From%20the%20foregoing%20remarks%20we%20may%20gather%20an%20idea%20of%20the%20importance">démonstration de scroll-to-text</a>.</p>
+
+<h2 id="specifications">Spécifications</h2>
+
+<p>{{Specifications}}</p>
+
+<h2 id="browser_compatibility">Compatibilité des navigateurs</h2>
+
+<p>{{Compat}}</p>
+
+<h2 id="See_also">Voir aussi</h2>
+
+<ul>
+ <li><a href="https://web.dev/text-fragments/">Text fragments (en anglais)</a></li>
+</ul>