From 5e990a17012ff5ed90ae1559a11bbe4bc74c887a Mon Sep 17 00:00:00 2001 From: MDN Date: Tue, 8 Jun 2021 00:58:25 +0000 Subject: [CRON] sync translated content --- files/fr/web/api/element/currentstyle/index.html | 48 ------------------------ 1 file changed, 48 deletions(-) delete mode 100644 files/fr/web/api/element/currentstyle/index.html (limited to 'files/fr/web/api/element') diff --git a/files/fr/web/api/element/currentstyle/index.html b/files/fr/web/api/element/currentstyle/index.html deleted file mode 100644 index 3ac845eaf3..0000000000 --- a/files/fr/web/api/element/currentstyle/index.html +++ /dev/null @@ -1,48 +0,0 @@ ---- -title: Element.currentStyle -slug: Web/API/Element/currentStyle -tags: - - API - - NeedsExample - - Non-standard - - Property -translation_of: Web/API/Element/currentStyle ---- -
{{APIRef("DOM")}}{{Non-standard_header}}
- -

Element.currentStyle est une propriété propriétaire qui est similaire à la méthode normalisée {{DOMxRef("window.getComputedStyle()")}}. Elle est disponible dans les anciennes versions de Microsoft Internet Explorer. Cependant, elle renvoie les unités définies dans CSS alors que window.getComputedStyle() renvoie les valeurs en pixels.

- -

Prothèse d'émulation

- -
-

Cette prothèse d'émulation retourne les valeurs en pixels et risque d'être plutôt lent, car il doit appeler {{domxref("window.getComputedStyle()")}} chaque fois que sa valeur est lue.

-
- -
/* Tout droit d'auteur est dédié au domaine public.
- * http://creativecommons.org/publicdomain/zero/1.0/ */
-
-if (!("currentStyle" in Element.prototype)) {
-  Object.defineProperty(Element.prototype, "currentStyle", {
-    get: function() {
-      return window.getComputedStyle(this);
-    }
-  });
-}
-
- -

Spécifications

- -

Ne fait partie d'aucune spécification.

- -

Microsoft a une description MSDN.

- -

Compatibilité des navigateurs

- -

{{Compat("api.Element.currentStyle")}}

- -

Voir aussi

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