Skip to content

Commit

Permalink
feat(css): alsoAppliesTo data for bg-pos-x/bg-pos-y (#707)
Browse files Browse the repository at this point in the history
<!-- 🙌 Thanks for contributing! Adding details below will help us to
merge your PR faster. -->

<!-- Commits need to adhere to conventional commits and only `fix:` and
`feat:` commits are added to the release notes. -->
<!-- https://www.conventionalcommits.org/en/v1.0.0/#examples -->

### Description

Copy the `alsoAppliesTo` data from `background-position` to
`background-position-x` and `background-position-y`, an obvious
derivation from the shorthand property.

### Motivation

Provide more complete/detailed "Formal definition" data for MDN CSS
property reference.

### Additional details

<!-- 🔗 Link to documentation, bug trackers, source control, or other
places providing more context -->

### Related issues and pull requests

<!-- 🔨 If this fully resolves a GitHub issue, use "Fixes #123" -->
<!-- 👉 Highlight related pull requests using "Relates to #123" -->
<!-- ❗ If another pull request should be merged first, use "**Depends
on:** #123" -->
  • Loading branch information
ferdnyc authored Jan 23, 2024
1 parent 488b6e4 commit 90bc67c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions css/properties.json
Original file line number Diff line number Diff line change
Expand Up @@ -2329,6 +2329,11 @@
"appliesto": "allElements",
"computed": "listEachItemConsistingOfAbsoluteLengthPercentageAndOrigin",
"order": "uniqueOrder",
"alsoAppliesTo": [
"::first-letter",
"::first-line",
"::placeholder"
],
"status": "experimental",
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/background-position-x"
},
Expand All @@ -2345,6 +2350,11 @@
"appliesto": "allElements",
"computed": "listEachItemConsistingOfAbsoluteLengthPercentageAndOrigin",
"order": "uniqueOrder",
"alsoAppliesTo": [
"::first-letter",
"::first-line",
"::placeholder"
],
"status": "experimental",
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/background-position-y"
},
Expand Down

0 comments on commit 90bc67c

Please sign in to comment.