From 932554bc0fb2be4228368c935dc14b9cf5cc3b9a Mon Sep 17 00:00:00 2001 From: Jb Audras Date: Tue, 27 Jul 2021 07:34:47 +0200 Subject: French translation for CSS `:current` pseudo class reference. (#1716) * Initial translation * move a parenthesis * Small changes - good to go --- files/fr/web/css/_colon_current/index.html | 66 ++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 files/fr/web/css/_colon_current/index.html (limited to 'files/fr/web') diff --git a/files/fr/web/css/_colon_current/index.html b/files/fr/web/css/_colon_current/index.html new file mode 100644 index 0000000000..b96560db91 --- /dev/null +++ b/files/fr/web/css/_colon_current/index.html @@ -0,0 +1,66 @@ +--- +title: ':current' +slug: 'Web/CSS/:current' +browser-compat: css.selectors.current +translation_of: Web/CSS/:current +--- +

{{CSSRef}}

+ +

Le sélecteur de pseudo-classe CSS :current est une pseudo-classe agissant dans la dimension temporelle et représentant l'élément actuellement affiché, ou un ancêtre de cet élément. Ce sélecteur peut par exemple servir dans le cas d'une vidéo ayant des sous-titres affichés à l'aide du format WebVTT.

+ +
:current(p, span) {
+  background-color: yellow;
+}
+ +

Syntaxe

+ +

{{csssyntax}}

+ +

Exemples

+ +

CSS

+ +
:current(p, span) {
+  background-color: yellow;
+}
+ +

HTML

+ +
<video controls preload="metadata">
+  <source src="video.mp4" type="video/mp4" />
+  <source src="video.webm" type="video/webm" />
+  <track label="Français" kind="subtitles" srclang="fr" src="subtitles.vtt" default>
+</video>
+ +

WebVTT

+ +
FICHIER WEBVTT
+
+1
+00:00:03.500 --> 00:00:05.000
+Voici le premier sous-titre
+
+2
+00:00:06.000 --> 00:00:09.000
+Voici le second sous-titre
+
+3
+00:00:11.000 --> 00:00:19.000
+Voici le troisième sous-titre
+
+ +

Spécifications

+ +

{{Specifications}}

+ +

Compatibilité des navigateurs

+ +

{{Compat}}

+ +

Voir aussi

+ + -- cgit v1.2.3-54-g00ecf