@webref/css 6.15.2 → 6.16.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-text-4.json CHANGED
@@ -461,7 +461,7 @@
461
461
  {
462
462
  "name": "text-wrap-style",
463
463
  "href": "https://drafts.csswg.org/css-text-4/#propdef-text-wrap-style",
464
- "value": "auto | balance | stable | pretty",
464
+ "value": "auto | balance | stable | pretty | avoid-orphans",
465
465
  "initial": "auto",
466
466
  "appliesTo": "block containers hat establish an inline formatting context",
467
467
  "inherited": "yes",
@@ -493,10 +493,17 @@
493
493
  },
494
494
  {
495
495
  "name": "pretty",
496
- "prose": "Specifies the UA should bias for better layout over speed, and is expected to consider multiple lines, when making break decisions. Otherwise equivalent to auto,",
496
+ "prose": "Specifies the UA should bias for better layout over speed, and is expected to consider multiple lines when making break decisions. Otherwise equivalent to auto. The user agent may among other things attempt to avoid excessively short last lines, similarly to avoid-orphans, but it should also improve the layout in additional ways. The precise set of improvements is user agent dependent, and may include things such as: reducing the variation in length between lines; avoiding typographic rivers; prioritizing different classes of soft wrap opportunities, hyphenation opportunities, or justification opportunities; avoiding hyphenation on too many consecutive lines… The necessary computations may be expensive, especially when applied to large amounts of text. Authors are encouraged to assess the impact on performance when using text-wrap-style: pretty, and possibly use it selectively where it matters most.",
497
497
  "href": "https://drafts.csswg.org/css-text-4/#valdef-text-wrap-style-pretty",
498
498
  "type": "value",
499
499
  "value": "pretty"
500
+ },
501
+ {
502
+ "name": "avoid-orphans",
503
+ "prose": "Specifies the UA should avoid excessively short last lines, and is expected to consider more than one line when making break decisions (for example, to avoid \"fixing\" an orphan by making the previous line too short). The user agent may decide against improving the last line when it would make some prior line(s) substantially unbalanced. The user agent should not attempt to improve other aspects of the layout beyond what auto if those improvements come at a significant performance cost. For instance, with the given line length, the following test would be wrapped with a single word on the last line, which could be judged too short. ἄνδρα μοι ἔννεπε, μοῦσα, πολύτροπον, ὃς μάλα πολλὰ πλάγχθη, ἐπεὶ Τροίης ἱερὸν πτολίεθρον ἔπερσεν. Applying text-wrap-style: avoid-orphans could yield something like this instead, which is arguably more pleasing: ἄνδρα μοι ἔννεπε, μοῦσα, πολύτροπον, ὃς μάλα πολλὰ πλάγχθη, ἐπεὶ Τροίης ἱερὸν πτολίεθρον ἔπερσεν. However, the following fragment is more vexing: Circumnavigating the Mississippi river An attempt to make the last line less short by wrapping the previous line earlier would result in the following: Circumnavigating the Mississippi river While the last line would indeed no longer be short, the penultimate line would be unsightly. In such cases, user agents are expected to prefer the first rendering despite text-wrap-style: avoid-orphans being set.",
504
+ "href": "https://drafts.csswg.org/css-text-4/#valdef-text-wrap-style-avoid-orphans",
505
+ "type": "value",
506
+ "value": "avoid-orphans"
500
507
  }
501
508
  ],
502
509
  "styleDeclaration": [
package/css-ui.json CHANGED
@@ -629,7 +629,7 @@
629
629
  {
630
630
  "name": "appearance",
631
631
  "href": "https://drafts.csswg.org/css-ui-4/#propdef-appearance",
632
- "value": "none | auto | <compat-auto> | <compat-special>",
632
+ "value": "none | auto | base | <compat-auto> | <compat-special>",
633
633
  "initial": "none",
634
634
  "appliesTo": "all elements",
635
635
  "inherited": "no",
@@ -652,6 +652,13 @@
652
652
  "type": "value",
653
653
  "value": "auto"
654
654
  },
655
+ {
656
+ "name": "base",
657
+ "prose": "The effect of base depends on the element it is applied to:",
658
+ "href": "https://drafts.csswg.org/css-ui-4/#valdef-appearance-base",
659
+ "type": "value",
660
+ "value": "base"
661
+ },
655
662
  {
656
663
  "name": "<compat-auto>",
657
664
  "value": "searchfield | textarea | checkbox | radio | menulist | listbox | meter | progress-bar | button",
package/css-values-5.json CHANGED
@@ -25,7 +25,7 @@
25
25
  },
26
26
  {
27
27
  "name": "allow-keywords",
28
- "prose": "Two values can be interpolated if one of them is an <intrinsic-size-keyword> and the other is a <length-percentage>. This is done by treating the <intrinsic-size-keyword> keyword as though it is calc-size(keyword, size) and applying the rules in § 9.3 Interpolating calc-size(). In other cases, an <intrinsic-size-keyword> still cannot be interpolated.",
28
+ "prose": "Two values can be interpolated if one of them is an <intrinsic-size-keyword> and the other is a <length-percentage>. This is done by treating the <intrinsic-size-keyword> keyword as though it is calc-size(keyword, size) and applying the rules in § 10.3 Interpolating calc-size(). In other cases, an <intrinsic-size-keyword> still cannot be interpolated.",
29
29
  "href": "https://drafts.csswg.org/css-values-5/#valdef-interpolate-size-allow-keywords",
30
30
  "type": "value",
31
31
  "value": "allow-keywords"
@@ -155,9 +155,134 @@
155
155
  }
156
156
  ]
157
157
  },
158
+ {
159
+ "name": "<position>",
160
+ "prose": "The <position> value specifies the position of an alignment subject (e.g. a background image) inside an alignment container (e.g. its background positioning area) as a pair of offsets between the specified edges (defaulting to the left and top). Its syntax is:",
161
+ "href": "https://drafts.csswg.org/css-values-5/#typedef-position",
162
+ "type": "type",
163
+ "value": "<position-one> | <position-two> | <position-four>",
164
+ "values": [
165
+ {
166
+ "name": "<length-percentage>",
167
+ "prose": "A <length-percentage> value specifies the size of the offset between the specified edges of the alignment subject and alignment container. For example, for background-position: 2cm 1cm, the top left corner of the background image is placed 2cm to the right and 1cm below the top left corner of the background positioning area. A <percentage> for the horizontal offset is relative to (width of alignment container - width of alignment subject). A <percentage> for the vertical offset is relative to (height of alignment container - height of alignment subject). For example, with a value pair of 0% 0%, the upper left corner of the alignment subject is aligned with the upper left corner of the alignment container A value pair of 100% 100% places the lower right corner of the alignment subject in the lower right corner of the alignment container. With a value pair of 75% 50%, the point 75% across and 50% down the alignment subject is to be placed at the point 75% across and 50% down the alignment container. Diagram of the meaning of background-position: 75% 50%.",
168
+ "href": "https://drafts.csswg.org/css-values-5/#valdef-position-length-percentage",
169
+ "type": "value",
170
+ "value": "<length-percentage>"
171
+ },
172
+ {
173
+ "name": "top",
174
+ "prose": "Offsets the top/left/right/bottom edges (respectively) of the alignment subject and alignment container by the specified amount (defaulting to 0%) in the corresponding axis.",
175
+ "href": "https://drafts.csswg.org/css-values-5/#valdef-position-top",
176
+ "type": "value",
177
+ "value": "top"
178
+ },
179
+ {
180
+ "name": "right",
181
+ "prose": "Offsets the top/left/right/bottom edges (respectively) of the alignment subject and alignment container by the specified amount (defaulting to 0%) in the corresponding axis.",
182
+ "href": "https://drafts.csswg.org/css-values-5/#valdef-position-right",
183
+ "type": "value",
184
+ "value": "right"
185
+ },
186
+ {
187
+ "name": "bottom",
188
+ "prose": "Offsets the top/left/right/bottom edges (respectively) of the alignment subject and alignment container by the specified amount (defaulting to 0%) in the corresponding axis.",
189
+ "href": "https://drafts.csswg.org/css-values-5/#valdef-position-bottom",
190
+ "type": "value",
191
+ "value": "bottom"
192
+ },
193
+ {
194
+ "name": "left",
195
+ "prose": "Offsets the top/left/right/bottom edges (respectively) of the alignment subject and alignment container by the specified amount (defaulting to 0%) in the corresponding axis.",
196
+ "href": "https://drafts.csswg.org/css-values-5/#valdef-position-left",
197
+ "type": "value",
198
+ "value": "left"
199
+ },
200
+ {
201
+ "name": "y-start",
202
+ "prose": "Computes the same as the physical edge keyword corresponding to the start/end side in the [=y-axis|y/x axis.",
203
+ "href": "https://drafts.csswg.org/css-values-5/#valdef-position-y-start",
204
+ "type": "value",
205
+ "value": "y-start"
206
+ },
207
+ {
208
+ "name": "y-end",
209
+ "prose": "Computes the same as the physical edge keyword corresponding to the start/end side in the [=y-axis|y/x axis.",
210
+ "href": "https://drafts.csswg.org/css-values-5/#valdef-position-y-end",
211
+ "type": "value",
212
+ "value": "y-end"
213
+ },
214
+ {
215
+ "name": "x-start",
216
+ "prose": "Computes the same as the physical edge keyword corresponding to the start/end side in the [=y-axis|y/x axis.",
217
+ "href": "https://drafts.csswg.org/css-values-5/#valdef-position-x-start",
218
+ "type": "value",
219
+ "value": "x-start"
220
+ },
221
+ {
222
+ "name": "x-end",
223
+ "prose": "Computes the same as the physical edge keyword corresponding to the start/end side in the [=y-axis|y/x axis.",
224
+ "href": "https://drafts.csswg.org/css-values-5/#valdef-position-x-end",
225
+ "type": "value",
226
+ "value": "x-end"
227
+ },
228
+ {
229
+ "name": "block-start",
230
+ "prose": "Computes the same as the physical edge keyword corresponding to the start/end side in the block/inline axis.",
231
+ "href": "https://drafts.csswg.org/css-values-5/#valdef-position-block-start",
232
+ "type": "value",
233
+ "value": "block-start"
234
+ },
235
+ {
236
+ "name": "block-end",
237
+ "prose": "Computes the same as the physical edge keyword corresponding to the start/end side in the block/inline axis.",
238
+ "href": "https://drafts.csswg.org/css-values-5/#valdef-position-block-end",
239
+ "type": "value",
240
+ "value": "block-end"
241
+ },
242
+ {
243
+ "name": "inline-start",
244
+ "prose": "Computes the same as the physical edge keyword corresponding to the start/end side in the block/inline axis.",
245
+ "href": "https://drafts.csswg.org/css-values-5/#valdef-position-inline-start",
246
+ "type": "value",
247
+ "value": "inline-start"
248
+ },
249
+ {
250
+ "name": "inline-end",
251
+ "prose": "Computes the same as the physical edge keyword corresponding to the start/end side in the block/inline axis.",
252
+ "href": "https://drafts.csswg.org/css-values-5/#valdef-position-inline-end",
253
+ "type": "value",
254
+ "value": "inline-end"
255
+ },
256
+ {
257
+ "name": "center",
258
+ "prose": "Computes to a 50% offset in the corresponding axis.",
259
+ "href": "https://drafts.csswg.org/css-values-5/#valdef-position-center",
260
+ "type": "value",
261
+ "value": "center"
262
+ }
263
+ ]
264
+ },
265
+ {
266
+ "name": "<position-one>",
267
+ "href": "https://drafts.csswg.org/css-values-5/#typedef-position-one",
268
+ "type": "type",
269
+ "value": "[ left | center | right | top | bottom | x-start | x-end | y-start | y-end | block-start | block-end | inline-start | inline-end | <length-percentage> ]"
270
+ },
271
+ {
272
+ "name": "<position-two>",
273
+ "href": "https://drafts.csswg.org/css-values-5/#typedef-position-two",
274
+ "type": "type",
275
+ "value": "[ [ left | center | right | x-start | x-end ] && [ top | center | bottom | y-start | y-end ] | [ left | center | right | x-start | x-end | <length-percentage> ] [ top | center | bottom | y-start | y-end | <length-percentage> ] | [ block-start | center | block-end ] && [ inline-start | center | inline-end ] | [ start | center | end ]{2} ]"
276
+ },
277
+ {
278
+ "name": "<position-four>",
279
+ "href": "https://drafts.csswg.org/css-values-5/#typedef-position-four",
280
+ "type": "type",
281
+ "value": "[ [ [ left | right | x-start | x-end ] <length-percentage> ] && [ [ top | bottom | y-start | y-end ] <length-percentage> ] | [ [ block-start | block-end ] <length-percentage> ] && [ [ inline-start | inline-end ] <length-percentage> ] | [ [ start | end ] <length-percentage> ]{2} ]"
282
+ },
158
283
  {
159
284
  "name": "progress()",
160
- "prose": "The progress() functional notation returns a <number> value representing the position of one calculation (the progress value) between two other calculations (the progress start value and progress end value). The argument calculations can resolve to any <number>, <dimension>, or <percentage>, but must have a consistent type or else the function is invalid. The result will be a <number>, made consistent with the consistent type of the arguments.",
285
+ "prose": "The progress() functional notation returns a <number> value representing the position of one calculation (the progress value) between two other calculations (the progress start value and progress end value). progress() is a math function.",
161
286
  "href": "https://drafts.csswg.org/css-values-5/#funcdef-progress",
162
287
  "type": "function"
163
288
  },
@@ -196,7 +321,7 @@
196
321
  "prose": "The <progress> value type represents the mix progress value in a mix notation, and ultimately resolves to a percentage. It can, however, draw that percentage value from sources such as media queries and animation timelines, and can also convert it through an easing function before using it for interpolation.",
197
322
  "href": "https://drafts.csswg.org/css-values-5/#typedef-progress",
198
323
  "type": "type",
199
- "value": "[ <percentage> | <number> | <'animation-timeline'> ]? && by <easing-function>",
324
+ "value": "[ <percentage> | <number> | <'animation-timeline'> ] && [ by <easing-function> ]?",
200
325
  "values": [
201
326
  {
202
327
  "name": "<percentage-token>",
@@ -473,7 +598,7 @@
473
598
  {
474
599
  "msg": "Missing definition",
475
600
  "name": "<color-mix()>",
476
- "value": "color-mix( <progress> && <color-interpolation-method>?, <color>, <color> ) | color-mix( <color-interpolation-method>, [<color> && <percentage [0,100]>?]#{2} )"
601
+ "value": "color-mix( [ <progress> && <color-interpolation-method>? ] , <color>, <color> ) | color-mix( <color-interpolation-method>, [<color> && <percentage [0,100]>?]#{2} )"
477
602
  },
478
603
  {
479
604
  "msg": "Missing definition",
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.15.2",
4
+ "version": "6.16.1",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/w3c/webref.git"
package/selectors-5.json CHANGED
@@ -13,8 +13,8 @@
13
13
  },
14
14
  {
15
15
  "name": ":state()",
16
- "prose": "The :state() pseudo-class takes a case-sensitive argument and matches custom elements whose exposed custom states include the argument.",
17
- "href": "https://drafts.csswg.org/selectors-5/#selectordef-state"
16
+ "value": ":state( <ident> )",
17
+ "href": "https://drafts.csswg.org/selectors-5/#state-pseudo"
18
18
  }
19
19
  ],
20
20
  "values": []
@@ -0,0 +1,16 @@
1
+ {
2
+ "spec": {
3
+ "title": "WebXR DOM Overlays Module",
4
+ "url": "https://immersive-web.github.io/dom-overlays/"
5
+ },
6
+ "properties": [],
7
+ "atrules": [],
8
+ "selectors": [
9
+ {
10
+ "name": ":xr-overlay",
11
+ "prose": "The :xr-overlay pseudo-class MUST match the overlay element for the duration of an immersive session using a DOM Overlay.",
12
+ "href": "https://immersive-web.github.io/dom-overlays/#selectordef-xr-overlay"
13
+ }
14
+ ],
15
+ "values": []
16
+ }