Skip to content

Commit d619c73

Browse files
authored
fix(css): Update the default/initial value of offset-position (#709)
### Description This PR updates the initial value of [`offset-position`](https://developer.mozilla.org/en-US/docs/Web/CSS/offset-position) property from `auto` to `normal`. **Sources:** - Spec: https://drafts.fxtf.org/motion/#offset-position-property - Change in spec from `auto` to `normal`: w3c/fxtf-drafts@fc81ee1 - Change implemented in Firefox: - https://bugzilla.mozilla.org/show_bug.cgi?id=1835434 - https://bugzilla.mozilla.org/show_bug.cgi?id=1559232 To test: 1. Open this example in Playground (Firefox 122 beta, releasing on Jan 23): [Comparing various offset starting positions](https://developer.mozilla.org/en-US/docs/Web/CSS/offset-position#comparing_various_offset_starting_positions). 2. Unset the value of `offset-position` to see the default value (default position with `normal` is (50%, 50%) of the containing block). ### Motivation The examples shown in content are currently based on the `offset-position`'s earlier default value `auto` and are not behaving as expected. The default value impacts the behavior of other properties like `ray()` in `offset-path` that depend on `offset-position`. I'll be opening a corresponding content PR to adjust the examples to show the updated/expected behavior.
1 parent e811ab9 commit d619c73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

css/properties.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7271,7 +7271,7 @@
72717271
"groups": [
72727272
"CSS Motion Path"
72737273
],
7274-
"initial": "auto",
7274+
"initial": "normal",
72757275
"appliesto": "transformableElements",
72767276
"computed": "forLengthAbsoluteValueOtherwisePercentage",
72777277
"order": "perGrammar",

0 commit comments

Comments
 (0)