@webref/css 6.4.0 → 6.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/css-color-5.json CHANGED
@@ -59,6 +59,22 @@
59
59
  ],
60
60
  "selectors": [],
61
61
  "values": [
62
+ {
63
+ "name": "<color>",
64
+ "prose": "Colors in CSS are represented by the <color> type:",
65
+ "type": "type",
66
+ "value": "<absolute-color-base> | currentcolor | <system-color> | <device-cmyk()>"
67
+ },
68
+ {
69
+ "name": "<absolute-color-base>",
70
+ "type": "type",
71
+ "value": "<hex-color> | <absolute-color-function> | <named-color> | transparent"
72
+ },
73
+ {
74
+ "name": "<absolute-color-function>",
75
+ "type": "type",
76
+ "value": "<rgb()> | <rgba()> | <hsl()> | <hsla()> | <hwb()> | <lab()> | <lch()> | <oklab()> | <oklch()> | <color()>"
77
+ },
62
78
  {
63
79
  "name": "color-mix()",
64
80
  "type": "function",
@@ -67,7 +83,7 @@
67
83
  {
68
84
  "name": "rgb()",
69
85
  "type": "function",
70
- "value": "rgb( [<percentage> | none]{3} [ / [<alpha-value> | none] ]? ) | rgb( [<number> | none]{3} [ / [<alpha-value> | none] ]? ) | rgb( [ from <color> ]? [ <number> | <percentage> | none]{3} [ / [<alpha-value> | none] ]? )",
86
+ "value": "rgb( [ from <color> ]? [ <number> | <percentage> | none]{3} [ / [<alpha-value> | none] ]? )",
71
87
  "values": [
72
88
  {
73
89
  "name": "r",
@@ -95,6 +111,11 @@
95
111
  }
96
112
  ]
97
113
  },
114
+ {
115
+ "name": "rgba()",
116
+ "type": "function",
117
+ "value": "rgba( [ from <color> ]? [ <number> | <percentage> | none]{3} [ / [<alpha-value> | none] ]? )"
118
+ },
98
119
  {
99
120
  "name": "<alpha-value>",
100
121
  "type": "type",
@@ -131,6 +152,11 @@
131
152
  }
132
153
  ]
133
154
  },
155
+ {
156
+ "name": "hsla()",
157
+ "type": "function",
158
+ "value": "hsla([from <color>]? [<hue> | none] [<percentage> | <number> | none] [<percentage> | <number> | none] [ / [<alpha-value> | none] ]? )"
159
+ },
134
160
  {
135
161
  "name": "hwb()",
136
162
  "type": "function",
package/css-color.json CHANGED
@@ -825,12 +825,32 @@
825
825
  {
826
826
  "name": "rgb()",
827
827
  "type": "function",
828
- "value": "rgb( [<percentage> | none]{3} [ / [<alpha-value> | none] ]? ) | rgb( [<number> | none]{3} [ / [<alpha-value> | none] ]? ) | rgb( <percentage>#{3} , <alpha-value>? ) | rgb( <number>#{3} , <alpha-value>? ) | rgb( [<percentage> | none]{3} [ / [<alpha-value> | none] ]? ) | rgb( [<number> | none]{3} [ / [<alpha-value> | none] ]? )"
828
+ "value": "[ <legacy-rgb-syntax> | <modern-rgb-syntax> ]"
829
829
  },
830
830
  {
831
831
  "name": "rgba()",
832
- "prose": "Also, an rgba() legacy color syntax also exists, with an identical grammar and behavior to rgb().",
833
- "type": "function"
832
+ "type": "function",
833
+ "value": "[ <legacy-rgba-syntax> | <modern-rgba-syntax> ]"
834
+ },
835
+ {
836
+ "name": "<legacy-rgb-syntax>",
837
+ "type": "type",
838
+ "value": "rgb( <percentage>#{3} , <alpha-value>? ) | rgb( <number>#{3} , <alpha-value>? )"
839
+ },
840
+ {
841
+ "name": "<legacy-rgba-syntax>",
842
+ "type": "type",
843
+ "value": "rgba( <percentage>#{3} , <alpha-value>? ) | rgba( <number>#{3} , <alpha-value>? )"
844
+ },
845
+ {
846
+ "name": "<modern-rgb-syntax>",
847
+ "type": "type",
848
+ "value": "rgb( [ <number> | <percentage> | none]{3} [ / [<alpha-value> | none] ]? )"
849
+ },
850
+ {
851
+ "name": "<modern-rgba-syntax>",
852
+ "type": "type",
853
+ "value": "rgba( [ <number> | <percentage> | none]{3} [ / [<alpha-value> | none] ]? )"
834
854
  },
835
855
  {
836
856
  "name": "<hex-color>",
@@ -966,11 +986,11 @@
966
986
  {
967
987
  "name": "hsl()",
968
988
  "type": "function",
969
- "value": "hsl( [<hue> | none] [<percentage> | none] [<percentage> | none] [ / [<alpha-value> | none] ]? ) | hsl( <hue>, <percentage>, <percentage>, <alpha-value>? ) | hsl( [<hue> | none] [<percentage> | none] [<percentage> | none] [ / [<alpha-value> | none] ]? )",
989
+ "value": "[ <legacy-hsl-syntax> | <modern-hsl-syntax> ]",
970
990
  "values": [
971
991
  {
972
992
  "name": "HSL",
973
- "prose": "HSL colors are specified as a triplet of hue, saturation, and lightness. The syntax of the hsl() function is:",
993
+ "prose": "HSL colors are specified as a triplet of hue, saturation, and lightness. The syntax of the hsl() and hsla() functions is:",
974
994
  "type": "value",
975
995
  "value": "HSL"
976
996
  }
@@ -978,8 +998,28 @@
978
998
  },
979
999
  {
980
1000
  "name": "hsla()",
981
- "prose": "Also, an hsla() legacy color syntax also exists, with an identical grammar and behavior to hsl().",
982
- "type": "function"
1001
+ "type": "function",
1002
+ "value": "[ <legacy-hsla-syntax> | <modern-hsla-syntax> ]"
1003
+ },
1004
+ {
1005
+ "name": "<modern-hsl-syntax>",
1006
+ "type": "type",
1007
+ "value": "hsl( [<hue> | none] [<percentage> | <number> | none] [<percentage> | <number> | none] [ / [<alpha-value> | none] ]? )"
1008
+ },
1009
+ {
1010
+ "name": "<modern-hsla-syntax>",
1011
+ "type": "type",
1012
+ "value": "hsla( [<hue> | none] [<percentage> | <number> | none] [<percentage> | <number> | none] [ / [<alpha-value> | none] ]? )"
1013
+ },
1014
+ {
1015
+ "name": "<legacy-hsl-syntax>",
1016
+ "type": "type",
1017
+ "value": "hsl( <hue>, <percentage>, <percentage>, <alpha-value>? )"
1018
+ },
1019
+ {
1020
+ "name": "<legacy-hsla-syntax>",
1021
+ "type": "type",
1022
+ "value": "hsla( <hue>, <percentage>, <percentage>, <alpha-value>? )"
983
1023
  },
984
1024
  {
985
1025
  "name": "hwb()",
package/css-easing.json CHANGED
@@ -100,7 +100,7 @@
100
100
  },
101
101
  {
102
102
  "name": "steps()",
103
- "value": "steps(<integer>[, <step-position> ]?)",
103
+ "value": "steps(<integer>, <step-position>?)",
104
104
  "type": "function",
105
105
  "values": [
106
106
  {
package/css-text-4.json CHANGED
@@ -880,7 +880,7 @@
880
880
  },
881
881
  {
882
882
  "name": "text-justify",
883
- "value": "auto | none | inter-word | inter-character",
883
+ "value": "[ auto | none | inter-word | inter-character ] || no-compress",
884
884
  "initial": "auto",
885
885
  "appliesTo": "text",
886
886
  "inherited": "yes",
@@ -924,6 +924,12 @@
924
924
  "prose": "Justification adjusts spacing as for auto except: Justification opportunities are disabled at word separators. Justification opportunities are disabled between Bopomofo characters",
925
925
  "type": "value",
926
926
  "value": "ruby"
927
+ },
928
+ {
929
+ "name": "no-compress",
930
+ "prose": "Justification must not compress spacing controlled by text-spacing-trim or text-autospace. (If this value is not specified, the justification process may reduce such spacing except when the spacing is at the start or end of the line.) This keyword used to be part of text-spacing; it might need renaming to be more specific now that it’s here, as it implies that e.g. U+0020 cannot be compressed.",
931
+ "type": "value",
932
+ "value": "no-compress"
927
933
  }
928
934
  ],
929
935
  "styleDeclaration": [
@@ -1058,10 +1064,10 @@
1058
1064
  ]
1059
1065
  },
1060
1066
  {
1061
- "name": "text-spacing",
1062
- "value": "normal | none | auto | no-compress || [ trim-start | space-start | space-first ] || [ trim-end | space-end | allow-end ] || [ trim-adjacent | space-adjacent ] || ideograph-alpha || ideograph-numeric || punctuation",
1067
+ "name": "text-autospace",
1068
+ "value": "normal | <autospace>",
1063
1069
  "initial": "normal",
1064
- "appliesTo": "block containers",
1070
+ "appliesTo": "text",
1065
1071
  "inherited": "yes",
1066
1072
  "percentages": "N/A",
1067
1073
  "computedValue": "specified keyword(s)",
@@ -1070,93 +1076,139 @@
1070
1076
  "values": [
1071
1077
  {
1072
1078
  "name": "normal",
1073
- "prose": "Specifies the baseline behavior, equivalent to space-start trim-end trim-adjacent ideograph-alpha ideograph-numeric.",
1079
+ "prose": "Same behavior as ideograph-alpha ideograph-numeric.",
1074
1080
  "type": "value",
1075
1081
  "value": "normal"
1076
1082
  },
1077
1083
  {
1078
- "name": "none",
1079
- "prose": "Turns off all text-spacing features. All fullwidth characters are set with full-width glyphs.",
1084
+ "name": "no-autospace",
1085
+ "prose": "No automatic space is inserted.",
1080
1086
  "type": "value",
1081
- "value": "none"
1087
+ "value": "no-autospace"
1082
1088
  },
1083
1089
  {
1084
- "name": "auto",
1085
- "prose": "The user agent chooses a set of typographically high quality spacing values. Different user agents running on different platforms may pick different values.",
1090
+ "name": "insert",
1091
+ "prose": "The specified spacing is automatically inserted if there are no space characters of any kind (Unicode general category Z) already there. If neither insert nor replace are specified, the behavior is the same as insert.",
1086
1092
  "type": "value",
1087
- "value": "auto"
1093
+ "value": "insert"
1088
1094
  },
1089
1095
  {
1090
- "name": "no-compress",
1091
- "prose": "Justification must not compress text-spacing. (If this value is not specified, the justification process may reduce autospacing except when the spacing is at the start or end of the line.)",
1096
+ "name": "replace",
1097
+ "prose": "The specified spacing is automatically inserted even if there is already a space (U+0020) at that point; additionally, the space (U+0020) is removed. Other types of space characters (Unicode general category Z) suppress automatic spacing, as for insert.",
1092
1098
  "type": "value",
1093
- "value": "no-compress"
1099
+ "value": "replace"
1094
1100
  },
1095
1101
  {
1096
- "name": "space-start",
1097
- "prose": "Set fullwidth opening punctuation with full-width glyphs (spaced) at the start of each line.",
1102
+ "name": "ideograph-alpha",
1103
+ "prose": "Creates extra spacing between runs of ideographs and non-ideographic letters, see § 8.4.1 Inter-script Spacing.",
1098
1104
  "type": "value",
1099
- "value": "space-start"
1105
+ "value": "ideograph-alpha"
1100
1106
  },
1101
1107
  {
1102
- "name": "trim-start",
1103
- "prose": "Set fullwidth opening punctuation with half-width glyphs (flush) at the start of each line.",
1108
+ "name": "ideograph-numeric",
1109
+ "prose": "Creates extra spacing between runs of ideographs and non-ideographic numerals, see § 8.4.1 Inter-script Spacing.",
1104
1110
  "type": "value",
1105
- "value": "trim-start"
1111
+ "value": "ideograph-numeric"
1106
1112
  },
1107
1113
  {
1108
- "name": "space-first",
1109
- "prose": "Behaves as space-start on the first line the block container and each line after a forced line break but as trim-start on all other lines.",
1114
+ "name": "punctuation",
1115
+ "prose": "Creates extra non-breaking spacing around punctuation as required by language-specific typographic conventions. In this level, if the element’s content language is French, narrow no-break space (U+202F) and no-break space (U+00A0) is inserted where required by French typographic guidelines. Otherwise this value has no effect. However future specifications may add automatic spacing behavior for other languages.",
1110
1116
  "type": "value",
1111
- "value": "space-first"
1117
+ "value": "punctuation"
1118
+ }
1119
+ ],
1120
+ "styleDeclaration": [
1121
+ "text-autospace",
1122
+ "textAutospace"
1123
+ ]
1124
+ },
1125
+ {
1126
+ "name": "text-spacing-trim",
1127
+ "value": "<spacing-trim> | auto",
1128
+ "initial": "space-first",
1129
+ "appliesTo": "text",
1130
+ "inherited": "yes",
1131
+ "percentages": "N/A",
1132
+ "computedValue": "specified keyword(s)",
1133
+ "canonicalOrder": "per grammar",
1134
+ "animationType": "discrete",
1135
+ "values": [
1136
+ {
1137
+ "name": "space-all",
1138
+ "prose": "All fullwidth punctuation characters are set with full-width glyphs (spaced).",
1139
+ "type": "value",
1140
+ "value": "space-all"
1112
1141
  },
1113
1142
  {
1114
- "name": "allow-end",
1115
- "prose": "Set fullwidth closing punctuation with half-width glyphs (flush) at the end of each line if it does not otherwise fit prior to justification; otherwise set the punctuation with full-width glyphs.",
1143
+ "name": "trim-auto",
1144
+ "prose": "Set fullwidth opening punctuation with half-width glyphs (flush) at the start of each line; set fullwidth closing punctuation with half-width glyphs (flush) at the end of each line; and collapse spacing between punctuation glyphs as described below.",
1116
1145
  "type": "value",
1117
- "value": "allow-end"
1146
+ "value": "trim-auto"
1118
1147
  },
1119
1148
  {
1120
- "name": "space-end",
1121
- "prose": "Set fullwidth closing punctuation with full-width glyphs (spaced) at the end of each line.",
1149
+ "name": "space-first",
1150
+ "prose": "Set fullwidth opening punctuation with full-width glyphs (spaced) on the first line the block container. Otherwise as trim-auto (unless allow-end is also specified).",
1122
1151
  "type": "value",
1123
- "value": "space-end"
1152
+ "value": "space-first"
1124
1153
  },
1125
1154
  {
1126
- "name": "trim-end",
1127
- "prose": "Set fullwidth closing punctuation with half-width glyphs (flush) at the end of each line.",
1155
+ "name": "allow-end",
1156
+ "prose": "Set fullwidth closing punctuation with half-width glyphs (flush) at the end of each line if it does not otherwise fit prior to justification, else set the punctuation with full-width glyphs. Otherwise as trim-auto (unless space-first is also specified).",
1128
1157
  "type": "value",
1129
- "value": "trim-end"
1158
+ "value": "allow-end"
1130
1159
  },
1131
1160
  {
1132
- "name": "space-adjacent",
1133
- "prose": "Set fullwidth opening punctuation with full-width glyphs (spaced) when not at the start of the line. Set fullwidth closing punctuation with full-width glyphs (spaced) when not at the end of the line.",
1161
+ "name": "auto",
1162
+ "prose": "The user agent chooses a set of typographically high quality spacing values. Different user agents running on different platforms may pick different values. Do we need auto? It would be weird for the author to choose platform-dependent behavior at the start of the first line, and it should otherwise use trim-auto.",
1163
+ "type": "value",
1164
+ "value": "auto"
1165
+ }
1166
+ ],
1167
+ "styleDeclaration": [
1168
+ "text-spacing-trim",
1169
+ "textSpacingTrim"
1170
+ ]
1171
+ },
1172
+ {
1173
+ "name": "text-spacing",
1174
+ "value": "normal | none | auto | <autospace> || <spacing-trim>",
1175
+ "initial": "see individual properties",
1176
+ "appliesTo": "text",
1177
+ "inherited": "yes",
1178
+ "percentages": "N/A",
1179
+ "computedValue": "specified keyword(s)",
1180
+ "animationType": "discrete",
1181
+ "canonicalOrder": "per grammar",
1182
+ "values": [
1183
+ {
1184
+ "name": "normal",
1185
+ "prose": "Specifies the baseline behavior, setting each sub-property to its initial value. Equivalent to space-first ideograph-alpha ideograph-numeric.",
1134
1186
  "type": "value",
1135
- "value": "space-adjacent"
1187
+ "value": "normal"
1136
1188
  },
1137
1189
  {
1138
- "name": "trim-adjacent",
1139
- "prose": "Collapse spacing between punctuation glyphs as described below.",
1190
+ "name": "none",
1191
+ "prose": "Turns off all text-spacing features: sets text-spacing-trim to space-all and text-autospace to no-autospace.",
1140
1192
  "type": "value",
1141
- "value": "trim-adjacent"
1193
+ "value": "none"
1142
1194
  },
1143
1195
  {
1144
- "name": "ideograph-alpha",
1145
- "prose": "Creates extra spacing between runs of ideographs and non-ideographic letters, see § 8.4.1 Inter-script Spacing.",
1196
+ "name": "auto",
1197
+ "prose": "Sets both text-spacing-trim and text-autospace to auto.",
1146
1198
  "type": "value",
1147
- "value": "ideograph-alpha"
1199
+ "value": "auto"
1148
1200
  },
1149
1201
  {
1150
- "name": "ideograph-numeric",
1151
- "prose": "Creates extra spacing between runs of ideographs and non-ideographic numerals, see § 8.4.1 Inter-script Spacing.",
1202
+ "name": "<spacing-trim>",
1203
+ "prose": "Sets text-spacing-trim to the specified value. If no <autospace> value is given, text-autospace is set to its initial value.",
1152
1204
  "type": "value",
1153
- "value": "ideograph-numeric"
1205
+ "value": "<spacing-trim>"
1154
1206
  },
1155
1207
  {
1156
- "name": "punctuation",
1157
- "prose": "Creates extra non-breaking spacing around punctuation as required by language-specific typographic conventions. In this level, if the element’s content language is French, narrow no-break space (U+202F) and no-break space (U+00A0) is inserted where required by French typographic guidelines. Otherwise this value has no effect. However future specifications may add automatic spacing behavior for other languages. Integrate rules for correcting incorrect spaces? Issue 318",
1208
+ "name": "<autospace>",
1209
+ "prose": "Sets text-autospace to the specified value. If no <spacing-trim> value is given, text-spacing-trim is set to its initial value.",
1158
1210
  "type": "value",
1159
- "value": "punctuation"
1211
+ "value": "<autospace>"
1160
1212
  }
1161
1213
  ],
1162
1214
  "styleDeclaration": [
@@ -1224,7 +1276,7 @@
1224
1276
  },
1225
1277
  {
1226
1278
  "name": "first",
1227
- "prose": "An opening bracket or quote at the start of the first formatted line of an element hangs. This applies to all characters in the Unicode categories Ps, Pf, Pi plus the ASCII quote marks U+0027 ' APOSTROPHE and U+0022 \" QUOTATION MARK.",
1279
+ "prose": "An opening bracket, quote, or ideographic space at the start of the first formatted line of an element hangs. This applies to all characters in the Unicode categories Ps, Pf, Pi plus the ASCII quote marks U+0027 ' APOSTROPHE and U+0022 \" QUOTATION MARK and the IDEOGRAPHIC SPACE U+3000.",
1228
1280
  "type": "value",
1229
1281
  "value": "first"
1230
1282
  },
@@ -1255,5 +1307,16 @@
1255
1307
  ],
1256
1308
  "atrules": [],
1257
1309
  "selectors": [],
1258
- "values": []
1310
+ "values": [
1311
+ {
1312
+ "name": "<autospace>",
1313
+ "type": "type",
1314
+ "value": "no-autospace | [ ideograph-alpha || ideograph-numeric || punctuation ] || [ insert | replace ]"
1315
+ },
1316
+ {
1317
+ "name": "<spacing-trim>",
1318
+ "type": "type",
1319
+ "value": "space-all | trim-auto | [ allow-end || space-first ]"
1320
+ }
1321
+ ]
1259
1322
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@webref/css",
3
3
  "description": "CSS definitions of the web platform",
4
- "version": "6.4.0",
4
+ "version": "6.4.1",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/w3c/webref.git"