From 27ba7bbf64a728ce5310e637db39b818032d6586 Mon Sep 17 00:00:00 2001 From: Valtteri Laitinen Date: Fri, 28 Apr 2017 18:20:09 +0300 Subject: [PATCH 1/2] Update CSS Code Hints pseudo-selectors MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add pseudo-classes – `:default` – `:dir()` – `:focus-within` – `:indeterminate` – `:matches()` – `:placeholder-shown`. Add pseudo-element `::placeholder`. Fix alphabetical order, space around `:`. --- .../PseudoSelectors.json | 25 ++++++++++++------- 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/src/extensions/default/CSSPseudoSelectorHints/PseudoSelectors.json b/src/extensions/default/CSSPseudoSelectorHints/PseudoSelectors.json index ce326c2ccce..f94714cbf23 100644 --- a/src/extensions/default/CSSPseudoSelectorHints/PseudoSelectors.json +++ b/src/extensions/default/CSSPseudoSelectorHints/PseudoSelectors.json @@ -1,30 +1,36 @@ { - "selectors" : + "selectors": { "active": {"desc": "Selects the active link"}, "checked": {"desc": "Selects every checked element"}, + "default": {"desc": "Selects every UI element that is the default among a group of similar elements"}, + "dir(direction)": {"desc": "Selects every element whose text direction is 'direction'", "text": "dir()"}, "disabled": {"desc": "Selects every disabled element"}, "empty": {"desc": "Selects every element that has no children/text (including text nodes)"}, "enabled": {"desc": "Selects every enabled element"}, "first-child": {"desc": "Selects every element that is the first child of its parent"}, "first-of-type": {"desc": "Selects every element that is the first element identified by 'type' of its parent"}, "focus": {"desc": "Selects the input element which has focus"}, + "focus-within": {"desc": "Selects every element which or whose descendant has focus"}, "hover": {"desc": "Selects elements on mouse over"}, "in-range": {"desc": "Selects input elements with a value within a specified range"}, + "indeterminate": {"desc": "Selects every indeterminate checkbox or radio button"}, "invalid": {"desc": "Selects all input elements with an invalid value"}, - "lang(language)": {"desc": "Selects every element with a lang attribute equal to 'language'", "text":"lang()"}, + "lang(language)": {"desc": "Selects every element with a lang attribute equal to 'language'", "text": "lang()"}, "last-child": {"desc": "Selects every element that is the last child of its parent"}, "last-of-type": {"desc": "Selects every element that is the last element of its parent"}, "link": {"desc": "Selects all unvisited links"}, - "not(selector)": {"desc": "Selects every element that is not an element identified by 'selector'", "text":"not()"}, - "nth-child(n)": {"desc": "Selects every element that is the second child of its parent", "text":"nth-child()"}, - "nth-last-child(n)": {"desc": "Selects every element that is the second child of its parent, counting from the last child", "text":"nth-last-child()"}, - "nth-last-of-type(n)": {"desc": "Selects every element that is the nth element of its parent, counting from the last child", "text":"nth-last-of-type()"}, - "nth-of-type(n)": {"desc": "Selects every element that is the nth element of its parent", "text":"nth-of-type(n)"}, - "only-of-type": {"desc": "Selects every element that is the only element of this type of its parent"}, + "matches(selectors)": {"decs": "Selects every element that is matched by one or more selectors in the 'selectors' list"}, + "not(selector)": {"desc": "Selects every element that is not an element identified by 'selector'", "text": "not()"}, + "nth-child(n)": {"desc": "Selects every element that is the second child of its parent", "text": "nth-child()"}, + "nth-last-child(n)": {"desc": "Selects every element that is the second child of its parent, counting from the last child", "text": "nth-last-child()"}, + "nth-last-of-type(n)": {"desc": "Selects every element that is the nth element of its parent, counting from the last child", "text": "nth-last-of-type()"}, + "nth-of-type(n)": {"desc": "Selects every element that is the nth element of its parent", "text": "nth-of-type(n)"}, "only-child": {"desc": "Selects every element that is the only child of its parent"}, + "only-of-type": {"desc": "Selects every element that is the only element of this type of its parent"}, "optional": {"desc": "Selects input elements with no 'required' attribute"}, "out-of-range": {"desc": "Selects input elements with a value outside a specified range"}, + "placeholder-shown": {"desc": "Selects all and