Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.

Commit cad7bd2

Browse files
valtlaificristo
authored andcommitted
Update CSS at-rule hints (#14013)
* Update CSS at-rules Add @counter-style and @font-feature-values. (Align colons.) * Revert colon aligment * Make CSS at-rule descriptions bit more consistent * Fix the unit test for CSS At-Rule Hints
1 parent b4589d0 commit cad7bd2

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed
Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
{
2-
"@charset": "Defines the character set used by the style sheet.",
3-
"@import": "Tells the CSS engine to include an external style sheet.",
4-
"@namespace": "Tells the CSS engine that all its content must be considered prefixed with an XML namespace.",
5-
"@media": "A conditional group rule which will apply its content if the device meets the criteria of the condition defined using a media query.",
6-
"@supports": "A conditional group rule which will apply its content if the browser meets the criteria of the given condition.",
7-
"@page": "Describes the aspect of layout changes which will be applied when printing the document.",
8-
"@font-face": "Describes the aspect of an external font to be downloaded.",
9-
"@keyframes": "Describes the aspect of intermediate steps in a CSS animation sequence."
2+
"@charset": "Defines the character set used by the style sheet.",
3+
"@counter-style": "Defines specific counter styles that are not part of the predefined set of styles.",
4+
"@font-face": "Describes the aspect of an external font to be downloaded.",
5+
"@font-feature-values": "Defines common names in font-variant-alternates for feature activated differently in OpenType.",
6+
"@import": "Tells the CSS engine to include an external style sheet.",
7+
"@keyframes": "Describes the aspect of intermediate steps in a CSS animation sequence.",
8+
"@media": "A conditional group rule which will apply its content if the device meets the criteria of the condition defined using a media query.",
9+
"@namespace": "Tells the CSS engine that all its content must be considered prefixed with an XML namespace.",
10+
"@page": "Describes the aspect of layout changes which will be applied when printing the document.",
11+
"@supports": "A conditional group rule which will apply its content if the browser meets the criteria of the given condition."
1012
}

src/extensions/default/CSSAtRuleCodeHints/unittests.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,9 @@ define(function (require, exports, module) {
141141
var hintList = expectHints(CSSAtRuleCodeHints.restrictedBlockHints);
142142
verifyFirstEntry(hintList, "@charset"); // filtered on "empty string"
143143
verifyListsAreIdentical(hintList, ["@charset",
144+
"@counter-style",
144145
"@font-face",
146+
"@font-feature-values",
145147
"@import",
146148
"@keyframes",
147149
"@media",

0 commit comments

Comments
 (0)