Edit

Share via


CSSCustomStateDeprecatedSyntaxEnabled

Controls whether the deprecated :--foo syntax for CSS custom state is enabled (obsolete)

OBSOLETE: This policy is obsolete and doesn't work after Microsoft Edge version 132.

Supported versions

  • On Windows and macOS since 127, until 132

Description

The :--foo syntax for the CSS custom state feature is being changed to :state(foo) in Microsoft Edge in order to comply with changes that have been made in Firefox and Safari. This policy lets the deprecated syntax to be used until Stable 132.

This deprecation might break some Microsoft Edge-only websites that use the deprecated :--foo syntax.

If you enable this policy, the deprecated syntax will be enabled.

If you disable this policy or don't set it, the deprecated syntax will be disabled.

Supported features

  • Can be mandatory: Yes
  • Can be recommended: No
  • Dynamic Policy Refresh: No - Requires browser restart
  • Per Profile: Yes
  • Applies to a profile that is signed in with a Microsoft account: No

Data type

  • Boolean

Windows information and settings

Group Policy (ADMX) info

  • GP unique name: CSSCustomStateDeprecatedSyntaxEnabled
  • GP name: Controls whether the deprecated :--foo syntax for CSS custom state is enabled (obsolete)
  • GP path (Mandatory): Administrative Templates/Microsoft Edge
  • GP path (Recommended): N/A
  • GP ADMX file name: MSEdge.admx

Example value

Enabled

Registry settings

  • Path (Mandatory): SOFTWARE\Policies\Microsoft\Edge
  • Path (Recommended): N/A
  • Value name: CSSCustomStateDeprecatedSyntaxEnabled
  • Value type: REG_DWORD

Example registry value

0x00000001

Mac information and settings

  • Preference Key name: CSSCustomStateDeprecatedSyntaxEnabled
  • Example value:
<true/>

See also