---
title: '::-ms-value'
slug: 'Web/CSS/::-ms-value'
tags:
- CSS
- Non-standard
- Pseudo-element
- Reference
translation_of: 'Archive/Web/CSS/::-ms-value'
---
{{CSSRef}}{{Non-standard_header}}
Le pseudo-élément ::-ms-value
est un pseudo-élément spécifique à Microsoft qui permet d'appliquer des règles sur les éléments {{HTMLElement("input")}} ou {{HTMLElement("select")}}. Seules certaines propriétés peuvent être paramétrées via ce pseudo-élément, les règles agissant sur d'autres propriétés n'auront donc aucun effet.
Propriétés autorisées
Seules les propriétés suivantes peuvent être utilisées dans une règle dont le sélecteur contient ::-ms-value
(les autres propriétés sont ignorées).
- {{cssxref("background-clip")}}
- {{cssxref("background-color")}}
- {{cssxref("background-image")}}
- {{cssxref("background-origin")}}
- {{cssxref("background-repeat")}}
- {{cssxref("background-size")}}
- {{cssxref("border-bottom-color")}}
- {{cssxref("border-bottom-left-radius")}}
- {{cssxref("border-bottom-right-radius")}}
- {{cssxref("border-bottom-style")}}
- {{cssxref("border-bottom-width")}}
- {{cssxref("border-left-color")}}
- {{cssxref("border-left-style")}}
- {{cssxref("border-left-width")}}
- {{cssxref("border-right-color")}}
- {{cssxref("border-right-style ")}}
- {{cssxref("border-right-width")}}
- {{cssxref("border-top-color")}}
- {{cssxref("border-top-left-radius")}}
- {{cssxref("border-top-right-radius ")}}
- {{cssxref("border-top-style")}}
- {{cssxref("border-top-width")}}
- {{cssxref("box-shadow")}}
- {{cssxref("box-sizing")}}
- {{cssxref("color")}}
- {{cssxref("cursor")}}
- {{cssxref("display")}} (valeurs
block
, inline-block
, none
)
- {{cssxref("@font-face")}}
- {{cssxref("font-size")}}
- {{cssxref("font-style")}}
- {{cssxref("font-weight")}}
- {{cssxref("height")}}
- {{cssxref("margin-bottom")}}
- {{cssxref("margin-left")}}
- {{cssxref("margin-right")}}
- {{cssxref("margin-top")}}
-ms-background-position-x
-ms-background-position-y
- {{cssxref("-ms-high-contrast-adjust")}}
- {{cssxref("opacity")}}
- {{cssxref("outline-color")}}
- {{cssxref("outline-style")}}
- {{cssxref("outline-width")}}
- {{cssxref("padding-bottom")}}
- {{cssxref("padding-left")}}
- {{cssxref("padding-right")}}
- {{cssxref("padding-top")}}
- {{cssxref("transform")}}
- {{cssxref("transform-origin")}}
- {{cssxref("visibility")}}
- {{cssxref("width")}}
Syntaxe
{{csssyntax}}
Exemples
input::-ms-value {
color: lime;
font-style: italic;
}
Spécifications
Ce pseudo-élément est un pseudo-élément propriétaire lié à Trident/Microsoft et ne fait partie d'aucune spécification.
Compatibilité des navigateurs
Le tableau de compatibilité de cette page a été généré à partir de données structurées. Si vous souhaitez contribuer à ces données, n'hésitez pas à consulter
https://github.com/mdn/browser-compat-data et à nous envoyer une
pull request.
{{Compat("css.selectors.-ms-value")}}