Skip to content

Commit

Permalink
Merge branch 'main' into workflows-templates
Browse files Browse the repository at this point in the history
  • Loading branch information
bsmth authored Dec 27, 2022
2 parents 9af85fe + 7ab601a commit 17dbff5
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 20 deletions.
4 changes: 2 additions & 2 deletions api/inheritance.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Inheritance

[data](https://github.com/mdn/data/blob/master/api/inheritance.json) |
[schema](https://github.com/mdn/data/blob/master/api/inheritance.schema.json)
[data](https://github.com/mdn/data/blob/main/api/inheritance.json) |
[schema](https://github.com/mdn/data/blob/main/api/inheritance.schema.json)

Interfaces of Web APIs can inherit from other interfaces or implement [mixins](https://developer.mozilla.org/en-US/docs/Glossary/Mixin). For each interface, this data informs about the inherited (parent) interface and the implemented mixins.

Expand Down
4 changes: 2 additions & 2 deletions css/at-rules.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# At-rules

[data](https://github.com/mdn/data/blob/master/css/at-rules.json) |
[schema](https://github.com/mdn/data/blob/master/css/at-rules.schema.json)
[data](https://github.com/mdn/data/blob/main/css/at-rules.json) |
[schema](https://github.com/mdn/data/blob/main/css/at-rules.schema.json)

An [at-rule](https://developer.mozilla.org/en-US/docs/Web/CSS/At-rule) is a CSS statement beginning with an at sign (@) that instructs CSS how to behave. There are several available identifiers defining what CSS should do in certain situations.

Expand Down
14 changes: 7 additions & 7 deletions css/properties.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Properties

[data](https://github.com/mdn/data/blob/master/css/properties.json) |
[schema](https://github.com/mdn/data/blob/master/css/properties.schema.json)
[data](https://github.com/mdn/data/blob/main/css/properties.json) |
[schema](https://github.com/mdn/data/blob/main/css/properties.schema.json)

At its core, CSS consists of [properties](https://developer.mozilla.org/en-US/docs/Web/CSS/Reference#index).

Expand Down Expand Up @@ -90,7 +90,7 @@ A short-hand property might look like this:
## Properties of a `Property` object

There are 11 required properties in this object:
* `syntax` (string): This is the formal syntax of the property and is usually found in the specification. It might contain references to [syntax data](https://github.com/mdn/data/blob/master/css/syntaxes.md).
* `syntax` (string): This is the formal syntax of the property and is usually found in the specification. It might contain references to [syntax data](https://github.com/mdn/data/blob/main/css/syntaxes.md).
For more information see also
[Value definition syntax](https://developer.mozilla.org/en-US/docs/Web/CSS/Value_definition_syntax)
on MDN and the [CSS Values and Units](https://www.w3.org/TR/css3-values/#value-defs) specification.
Expand All @@ -106,14 +106,14 @@ on MDN and the [CSS Values and Units](https://www.w3.org/TR/css3-values/#value-d
* `initial` (string or array of property names):
* If it is a string (appropriate for long-hand properties), this is the initial value of the property.
* If it is an array (appropriate for short-hand properties), these are the properties the initial value is taken from.
* `appliesto` (enum): To which elements the property can be applied to. See the schema for [a list of enums](https://github.com/mdn/data/blob/master/css/properties.schema.json#L161)
* `appliesto` (enum): To which elements the property can be applied to. See the schema for [a list of enums](https://github.com/mdn/data/blob/main/css/properties.schema.json#L161)
* `computed` (enum or array of property names):
* If it is an enum (appropriate for long-hand properties), this is the computed value of the property. See the schema for [a list of enums](https://github.com/mdn/data/blob/master/css/properties.schema.json#L91).
* If it is an enum (appropriate for long-hand properties), this is the computed value of the property. See the schema for [a list of enums](https://github.com/mdn/data/blob/main/css/properties.schema.json#L91).
* If it is an array (appropriate for short-hand properties), these are the properties the value is computed from.
* `order` (enum): The [canonical order](https://developer.mozilla.org/en-US/docs/Glossary/Canonical_order) for the property. See the schema for [a list of enums](https://github.com/mdn/data/blob/master/css/properties.schema.json#L261).
* `order` (enum): The [canonical order](https://developer.mozilla.org/en-US/docs/Glossary/Canonical_order) for the property. See the schema for [a list of enums](https://github.com/mdn/data/blob/main/css/properties.schema.json#L261).
* `status` (enum): This is either `standard`, `nonstandard`, or `experimental` depending on the standardization status of the feature.

There are 3 more properties that are optional:
* `mdn_url` (string): a URL linking to the property's page on MDN. This URL must omit the localization part of the URL (such as `en-US/`).
* `stacking` (boolean): Whether or not the property creates a stacking context. See [stacking context](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Positioning/Understanding_z_index/The_stacking_context) for details.
* `alsoAppliesTo` (enum): To which elements the property also applies to. See the schema for [a list of enums](https://github.com/mdn/data/blob/master/css/properties.schema.json#L253).
* `alsoAppliesTo` (enum): To which elements the property also applies to. See the schema for [a list of enums](https://github.com/mdn/data/blob/main/css/properties.schema.json#L253).
4 changes: 2 additions & 2 deletions css/selectors.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Selectors

[data](https://github.com/mdn/data/blob/master/css/selectors.json) |
[schema](https://github.com/mdn/data/blob/master/css/selectors.schema.json)
[data](https://github.com/mdn/data/blob/main/css/selectors.json) |
[schema](https://github.com/mdn/data/blob/main/css/selectors.schema.json)

[CSS Selectors](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Selectors) define which elements CSS rulesets will be applied to.

Expand Down
6 changes: 3 additions & 3 deletions css/syntaxes.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Syntaxes

[data](https://github.com/mdn/data/blob/master/css/syntaxes.json) |
[schema](https://github.com/mdn/data/blob/master/css/syntaxes.schema.json)
[data](https://github.com/mdn/data/blob/main/css/syntaxes.json) |
[schema](https://github.com/mdn/data/blob/main/css/syntaxes.schema.json)

[CSS value definition syntax](https://developer.mozilla.org/en-US/docs/Web/CSS/Value_definition_syntax) is used for the formal syntax of CSS properties. The syntaxes.json file defines many of these CSS syntaxes.

Expand All @@ -25,7 +25,7 @@ Definition of `<attachment>` in syntaxes.json:
```

CSS syntaxes might be more complex than just keywords separated by a pipe (`|`). For example, the syntax might contain values that are referencing
[CSS types](https://github.com/mdn/data/blob/master/css/types.md):
[CSS types](https://github.com/mdn/data/blob/main/css/types.md):

```json
"alpha-value": {
Expand Down
4 changes: 2 additions & 2 deletions css/types.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Types

[data](https://github.com/mdn/data/blob/master/css/types.json) |
[schema](https://github.com/mdn/data/blob/master/css/types.schema.json)
[data](https://github.com/mdn/data/blob/main/css/types.json) |
[schema](https://github.com/mdn/data/blob/main/css/types.schema.json)

[CSS basic data types](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Types) define the kinds of values (keywords and units) accepted by CSS properties and functions.

Expand Down
4 changes: 2 additions & 2 deletions css/units.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Units

[data](https://github.com/mdn/data/blob/master/css/units.json) |
[schema](https://github.com/mdn/data/blob/master/css/units.schema.json)
[data](https://github.com/mdn/data/blob/main/css/units.json) |
[schema](https://github.com/mdn/data/blob/main/css/units.schema.json)

Units are CSS units like `em` or `px`. Most of them are defined in the
[CSS Values and Units specification](https://drafts.csswg.org/css-values/).
Expand Down

0 comments on commit 17dbff5

Please sign in to comment.