Skip to content

Commit b3997c5

Browse files
Add CSS Anchor Positioning data (#728)
1 parent 6675982 commit b3997c5

File tree

5 files changed

+172
-0
lines changed

5 files changed

+172
-0
lines changed

css/at-rules.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -417,6 +417,17 @@
417417
"status": "standard",
418418
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/@page"
419419
},
420+
"@position-try": {
421+
"syntax": "@position-try <dashed-ident> {\n <declaration-list>\n}",
422+
"interfaces": [
423+
"CSSPositionTryRule"
424+
],
425+
"groups": [
426+
"CSS Positioning"
427+
],
428+
"status": "experimental",
429+
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/@position-try"
430+
},
420431
"@property": {
421432
"syntax": "@property <custom-property-name> {\n <declaration-list>\n}",
422433
"interfaces": [

css/functions.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,20 @@
11
{
2+
"anchor()": {
3+
"syntax": "anchor( <anchor-element>? <anchor-side>, <length-percentage>? )",
4+
"groups": [
5+
"CSS Positioning"
6+
],
7+
"status": "experimental",
8+
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/anchor"
9+
},
10+
"anchor-size()": {
11+
"syntax": "anchor-size( <anchor-element>? <anchor-size>, <length-percentage>? )",
12+
"groups": [
13+
"CSS Positioning"
14+
],
15+
"status": "experimental",
16+
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/anchor-size"
17+
},
218
"attr()": {
319
"syntax": "attr( <attr-name> <type-or-unit>? [, <attr-fallback> ]? )",
420
"groups": [

css/properties.json

Lines changed: 137 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1783,6 +1783,38 @@
17831783
"status": "standard",
17841784
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/all"
17851785
},
1786+
"anchor-name": {
1787+
"syntax": "none | <dashed-ident>#",
1788+
"media": "visual",
1789+
"inherited": false,
1790+
"animationType": "discrete",
1791+
"percentages": "no",
1792+
"groups": [
1793+
"CSS Positioning"
1794+
],
1795+
"initial": "none",
1796+
"appliesto": "allElementsThatGenerateAPrincipalBox",
1797+
"computed": "asSpecified",
1798+
"order": "perGrammar",
1799+
"status": "experimental",
1800+
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/anchor-name"
1801+
},
1802+
"anchor-scope": {
1803+
"syntax": "none | all | <dashed-ident>#",
1804+
"media": "visual",
1805+
"inherited": false,
1806+
"animationType": "discrete",
1807+
"percentages": "no",
1808+
"groups": [
1809+
"CSS Positioning"
1810+
],
1811+
"initial": "none",
1812+
"appliesto": "allElements",
1813+
"computed": "asSpecified",
1814+
"order": "perGrammar",
1815+
"status": "experimental",
1816+
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/anchor-scope"
1817+
},
17861818
"animation": {
17871819
"syntax": "<single-animation>#",
17881820
"media": "visual",
@@ -6002,6 +6034,22 @@
60026034
"status": "standard",
60036035
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/inset"
60046036
},
6037+
"inset-area": {
6038+
"syntax": "none | <inset-area>",
6039+
"media": "visual",
6040+
"inherited": false,
6041+
"animationType": "discrete",
6042+
"percentages": "no",
6043+
"groups": [
6044+
"CSS Positioning"
6045+
],
6046+
"initial": "none",
6047+
"appliesto": "positionedElementsWithADefaultAnchorElement",
6048+
"computed": "asSpecified",
6049+
"order": "perGrammar",
6050+
"status": "experimental",
6051+
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/inset-area"
6052+
},
60056053
"inset-block": {
60066054
"syntax": "<'top'>{1,2}",
60076055
"media": "visual",
@@ -8142,6 +8190,95 @@
81428190
"status": "standard",
81438191
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/position"
81448192
},
8193+
"position-anchor": {
8194+
"syntax": "<anchor-element>",
8195+
"media": "visual",
8196+
"inherited": false,
8197+
"animationType": "discrete",
8198+
"percentages": "no",
8199+
"groups": [
8200+
"CSS Positioning"
8201+
],
8202+
"initial": "implicit",
8203+
"appliesto": "absolutelyPositionedElements",
8204+
"computed": "asSpecified",
8205+
"order": "perGrammar",
8206+
"status": "experimental",
8207+
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/position-anchor"
8208+
},
8209+
"position-try": {
8210+
"syntax": "<'position-try-order'>? <'position-try-options'>",
8211+
"media": "visual",
8212+
"inherited": false,
8213+
"animationType": [
8214+
"position-try-options",
8215+
"position-try-order"
8216+
],
8217+
"percentages": "no",
8218+
"groups": [
8219+
"CSS Positioning"
8220+
],
8221+
"initial": [
8222+
"position-try-options",
8223+
"position-try-order"
8224+
],
8225+
"appliesto": "absolutelyPositionedElements",
8226+
"computed": [
8227+
"position-try-options",
8228+
"position-try-order"
8229+
],
8230+
"order": "perGrammar",
8231+
"status": "experimental",
8232+
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/position-try"
8233+
},
8234+
"position-try-options": {
8235+
"syntax": "none | [ [<dashed-ident> || <try-tactic>] | inset-area( <'inset-area'> ) ]#",
8236+
"media": "visual",
8237+
"inherited": false,
8238+
"animationType": "discrete",
8239+
"percentages": "no",
8240+
"groups": [
8241+
"CSS Positioning"
8242+
],
8243+
"initial": "none",
8244+
"appliesto": "absolutelyPositionedElements",
8245+
"computed": "asSpecified",
8246+
"order": "perGrammar",
8247+
"status": "experimental",
8248+
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/position-try-options"
8249+
},
8250+
"position-try-order": {
8251+
"syntax": "normal | <try-size>",
8252+
"media": "visual",
8253+
"inherited": false,
8254+
"animationType": "discrete",
8255+
"percentages": "no",
8256+
"groups": [
8257+
"CSS Positioning"
8258+
],
8259+
"initial": "normal",
8260+
"appliesto": "absolutelyPositionedElements",
8261+
"computed": "asSpecified",
8262+
"order": "perGrammar",
8263+
"status": "experimental",
8264+
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/position-try-order"
8265+
},
8266+
"position-visibility": {
8267+
"syntax": "always | [ anchors-valid || anchors-visible || no-overflow ]",
8268+
"media": "visual",
8269+
"inherited": false,
8270+
"animationType": "discrete",
8271+
"percentages": "no",
8272+
"groups": [
8273+
"CSS Positioning"
8274+
],
8275+
"initial": "anchors-visible",
8276+
"appliesto": "absolutelyPositionedElements",
8277+
"computed": "asSpecified",
8278+
"order": "perGrammar",
8279+
"status": "experimental",
8280+
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/position-visibility"
8281+
},
81458282
"print-color-adjust": {
81468283
"syntax": "economy | exact",
81478284
"media": "visual",

css/properties.schema.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,7 @@
190190
"allElementsSVGContainerElements",
191191
"allElementsSVGContainerGraphicsAndGraphicsReferencingElements",
192192
"allElementsThatCanReferenceImages",
193+
"allElementsThatGenerateAPrincipalBox",
193194
"allElementsTreeAbidingPseudoElementsPageMarginBoxes",
194195
"allElementsUAsNotRequiredWhenCollapse",
195196
"anyElementEffectOnProgressAndMeter",
@@ -243,6 +244,7 @@
243244
"nonReplacedElements",
244245
"nonReplacedInlineElements",
245246
"positionedElements",
247+
"positionedElementsWithADefaultAnchorElement",
246248
"replacedElements",
247249
"rubyAnnotationsContainers",
248250
"rubyBasesAnnotationsBaseAnnotationContainers",

l10n/css.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,9 @@
244244
"ja": "すべての要素。ただし一部の値はインラインでない要素には効果がありません",
245245
"ru": "все элементы, хотя некоторые значения не работают на не строчных элементах"
246246
},
247+
"allElementsThatGenerateAPrincipalBox": {
248+
"en-US": "All elements that generate a <a href=\"https://drafts.csswg.org/css-display-4/#principal-box\">principal box</a>"
249+
},
247250
"allElementsTreeAbidingPseudoElementsPageMarginBoxes": {
248251
"ja": "すべての要素、ツリーに現れる擬似要素、ページのマージンボックス",
249252
"en-US": "All elements, tree-abiding pseudo-elements, and page margin boxes"
@@ -1216,6 +1219,9 @@
12161219
"ja": "<a href=\"/en-US/docs/Web/CSS/position_value#interpolation\" title=\"<position> データ型の値は、横軸と縦軸に対して個別に補間されます。速度は両方とも同じ <easing-function> で定義されているので、点は線に沿って移動します。\">position</a>",
12171220
"ru": "<a href=\"/ru/docs/Web/CSS/position_value#interpolation\" title=\"Значении типа данных <позиция> интерполизуются независимо как абсцисса или ордината. Скорость определяется по одной <временной функции> для обоих координат, точка будет двигаться следуя линии.\">позиция</a>"
12181221
},
1222+
"positionedElementsWithADefaultAnchorElement": {
1223+
"en-US": "Positioned elements with a <a href=\"https://drafts.csswg.org/css-anchor-position-1/#default-anchor-element\">default anchor element</a>"
1224+
},
12191225
"positionedElements": {
12201226
"de": "positionierte Elemente",
12211227
"en-US": "positioned elements",

0 commit comments

Comments
 (0)