diff --git a/schemas/json/theme.json b/schemas/json/theme.json index 1bcfd1335c64c7..9e5590f6ab52f6 100644 --- a/schemas/json/theme.json +++ b/schemas/json/theme.json @@ -1910,6 +1910,39 @@ } ] }, + "stylesElementsPseudoSelectorsProperties": { + "type": "object", + "properties": { + ":hover": { + "$ref": "#/definitions/stylesPropertiesComplete" + }, + ":focus": { + "$ref": "#/definitions/stylesPropertiesComplete" + }, + ":active": { + "$ref": "#/definitions/stylesPropertiesComplete" + }, + ":visited": { + "$ref": "#/definitions/stylesPropertiesComplete" + }, + ":link": { + "$ref": "#/definitions/stylesPropertiesComplete" + }, + ":any-link": { + "$ref": "#/definitions/stylesPropertiesComplete" + } + } + }, + "stylesElementsPseudoSelectorsPropertyNames": { + "enum": [ + ":hover", + ":focus", + ":active", + ":visited", + ":link", + ":any-link" + ] + }, "stylesElementsPropertiesComplete": { "description": "Styles defined on a per-element basis using the element's selector.", "type": "object", @@ -1921,26 +1954,7 @@ "$ref": "#/definitions/stylesProperties" }, { - "properties": { - ":hover": { - "$ref": "#/definitions/stylesPropertiesComplete" - }, - ":focus": { - "$ref": "#/definitions/stylesPropertiesComplete" - }, - ":active": { - "$ref": "#/definitions/stylesPropertiesComplete" - }, - ":visited": { - "$ref": "#/definitions/stylesPropertiesComplete" - }, - ":link": { - "$ref": "#/definitions/stylesPropertiesComplete" - }, - ":any-link": { - "$ref": "#/definitions/stylesPropertiesComplete" - } - } + "$ref": "#/definitions/stylesElementsPseudoSelectorsProperties" }, { "propertyNames": { @@ -1949,14 +1963,7 @@ "$ref": "#/definitions/stylesPropertyNames" }, { - "enum": [ - ":hover", - ":focus", - ":active", - ":visited", - ":link", - ":any-link" - ] + "$ref": "#/definitions/stylesElementsPseudoSelectorsPropertyNames" } ] } @@ -1970,26 +1977,7 @@ "$ref": "#/definitions/stylesProperties" }, { - "properties": { - ":hover": { - "$ref": "#/definitions/stylesPropertiesComplete" - }, - ":focus": { - "$ref": "#/definitions/stylesPropertiesComplete" - }, - ":active": { - "$ref": "#/definitions/stylesPropertiesComplete" - }, - ":visited": { - "$ref": "#/definitions/stylesPropertiesComplete" - }, - ":link": { - "$ref": "#/definitions/stylesPropertiesComplete" - }, - ":any-link": { - "$ref": "#/definitions/stylesPropertiesComplete" - } - } + "$ref": "#/definitions/stylesElementsPseudoSelectorsProperties" }, { "propertyNames": { @@ -1998,14 +1986,7 @@ "$ref": "#/definitions/stylesPropertyNames" }, { - "enum": [ - ":hover", - ":focus", - ":active", - ":visited", - ":link", - ":any-link" - ] + "$ref": "#/definitions/stylesElementsPseudoSelectorsPropertyNames" } ] }