-
Notifications
You must be signed in to change notification settings - Fork 636
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[css-anchor-position] Initial value of position-anchor
should be auto
not implicit
#10312
Comments
This is a reasonable point. +1 to renaming |
See the spec discussion here: w3c/csswg-drafts#10312 (comment) This is observable, but barely. After this CL, `implicit` won't be a valid value for `position-anchor`, so it'll resolve to the default value of `auto`. Meaning the behavior will be the same. But via the CSSOM, getComputedStyle(element).positionAnchor will now return "auto" instead of "implicit". Fixed: 340206288 Change-Id: I75b05310638dca70aa6aa8807da8cfe7c9624a32
The CSS Working Group just discussed
The full IRC log of that discussion<bradk> present*<emilio> fantasai: The initial value of `position-anchor` is `implicit` <emilio> ... advanced vocabulary, but we probably don't want to expose this to authors <emilio> ... propose to rename `implicit` to `auto` <emilio> ... and then this keyword also shows up in `anchor()` where we can rename it to `auto` too or just drop it because I don't think it's necessary <emilio> TabAtkins: we should just drop it, if you omit it you get that behavior <emilio> ... I generally want to make sure that implicit behavior is specifiable, but not necessary <emilio> florian: seems more consistent to how we name things <emilio> RESOLVED: Rename implicit to auto in position-anchor <emilio> RESOLVED: Drop the keyword from the anchor() function |
This was resolved here: w3c/csswg-drafts#10312 (comment) and will be added to the spec shortly. This is observable, but barely. After this CL, `implicit` won't be a valid value for `position-anchor`, so it'll resolve to the default value of `auto`. Meaning the behavior will be the same. But via the CSSOM, getComputedStyle(element).positionAnchor will now return "auto" instead of "implicit". Fixed: 340206288 Change-Id: I75b05310638dca70aa6aa8807da8cfe7c9624a32
This was resolved here: w3c/csswg-drafts#10312 (comment) and will be added to the spec shortly. This is observable, but barely. After this CL, `implicit` won't be a valid value for `position-anchor`, so it'll resolve to the default value of `auto`. Meaning the behavior will be the same. But via the CSSOM, getComputedStyle(element).positionAnchor will now return "auto" instead of "implicit". Fixed: 340206288 Change-Id: I75b05310638dca70aa6aa8807da8cfe7c9624a32 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5540275 Reviewed-by: Rune Lillesveen <futhark@chromium.org> Commit-Queue: Mason Freed <masonf@chromium.org> Cr-Commit-Position: refs/heads/main@{#1301585}
This was resolved here: w3c/csswg-drafts#10312 (comment) and will be added to the spec shortly. This is observable, but barely. After this CL, `implicit` won't be a valid value for `position-anchor`, so it'll resolve to the default value of `auto`. Meaning the behavior will be the same. But via the CSSOM, getComputedStyle(element).positionAnchor will now return "auto" instead of "implicit". Fixed: 340206288 Change-Id: I75b05310638dca70aa6aa8807da8cfe7c9624a32 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5540275 Reviewed-by: Rune Lillesveen <futhark@chromium.org> Commit-Queue: Mason Freed <masonf@chromium.org> Cr-Commit-Position: refs/heads/main@{#1301585}
This was resolved here: w3c/csswg-drafts#10312 (comment) and will be added to the spec shortly. This is observable, but barely. After this CL, `implicit` won't be a valid value for `position-anchor`, so it'll resolve to the default value of `auto`. Meaning the behavior will be the same. But via the CSSOM, getComputedStyle(element).positionAnchor will now return "auto" instead of "implicit". Fixed: 340206288 Change-Id: I75b05310638dca70aa6aa8807da8cfe7c9624a32 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5540275 Reviewed-by: Rune Lillesveen <futhark@chromium.org> Commit-Queue: Mason Freed <masonf@chromium.org> Cr-Commit-Position: refs/heads/main@{#1301585}
…', and only let you specify that behavior in anchor()/anchor-size() via omission. #10312
See the CSSWG resolution here: w3c/csswg-drafts#10312 (comment) which says: RESOLVED: Rename implicit to auto in position-anchor RESOLVED: Drop the keyword from the anchor() function The first part was taken care of in [1]. This CL takes care of the second part. [1] https://chromium-review.googlesource.com/c/chromium/src/+/5540275 Bug: 340206288 Change-Id: I33972e06104d061bb06232dac851877159b4fc92
Is the Until then, |
@yisibl the syntax change looks right to me (see the change in the But there are still several prose references to an |
See the CSSWG resolution here: w3c/csswg-drafts#10312 (comment) which says: RESOLVED: Rename implicit to auto in position-anchor RESOLVED: Drop the keyword from the anchor() function The first part was taken care of in [1]. This CL takes care of the second part. [1] https://chromium-review.googlesource.com/c/chromium/src/+/5540275 Bug: 340206288 Change-Id: I33972e06104d061bb06232dac851877159b4fc92
@astearns So after the syntax change, will |
@yisibl that is my reading. @tabatkins are we correct? |
See the CSSWG resolution here: w3c/csswg-drafts#10312 (comment) which says: RESOLVED: Rename implicit to auto in position-anchor RESOLVED: Drop the keyword from the anchor() function The first part was taken care of in [1]. This CL takes care of the second part. [1] https://chromium-review.googlesource.com/c/chromium/src/+/5540275 Bug: 340206288 Change-Id: I33972e06104d061bb06232dac851877159b4fc92
See the CSSWG resolution here: w3c/csswg-drafts#10312 (comment) which says: RESOLVED: Rename implicit to auto in position-anchor RESOLVED: Drop the keyword from the anchor() function The first part was taken care of in [1]. This CL takes care of the second part. [1] https://chromium-review.googlesource.com/c/chromium/src/+/5540275 Bug: 340206288 Change-Id: I33972e06104d061bb06232dac851877159b4fc92 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5542337 Reviewed-by: Anders Hartvoll Ruud <andruud@chromium.org> Auto-Submit: Mason Freed <masonf@chromium.org> Commit-Queue: Mason Freed <masonf@chromium.org> Cr-Commit-Position: refs/heads/main@{#1302830}
See the CSSWG resolution here: w3c/csswg-drafts#10312 (comment) which says: RESOLVED: Rename implicit to auto in position-anchor RESOLVED: Drop the keyword from the anchor() function The first part was taken care of in [1]. This CL takes care of the second part. [1] https://chromium-review.googlesource.com/c/chromium/src/+/5540275 Bug: 340206288 Change-Id: I33972e06104d061bb06232dac851877159b4fc92 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5542337 Reviewed-by: Anders Hartvoll Ruud <andruud@chromium.org> Auto-Submit: Mason Freed <masonf@chromium.org> Commit-Queue: Mason Freed <masonf@chromium.org> Cr-Commit-Position: refs/heads/main@{#1302830}
* fix: update the syntax of anchor() and anchor-size() see: w3c/csswg-drafts#10312 (comment) * Add anchor-center to 'place-self' and 'place-items' * Add more * Add more logical size properties to anchor-size() * fix: reomve anchor(auto)
…ion-anchor:auto, a=testonly Automatic update from web-platform-tests Rename position-anchor:implicit to position-anchor:auto This was resolved here: w3c/csswg-drafts#10312 (comment) and will be added to the spec shortly. This is observable, but barely. After this CL, `implicit` won't be a valid value for `position-anchor`, so it'll resolve to the default value of `auto`. Meaning the behavior will be the same. But via the CSSOM, getComputedStyle(element).positionAnchor will now return "auto" instead of "implicit". Fixed: 340206288 Change-Id: I75b05310638dca70aa6aa8807da8cfe7c9624a32 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5540275 Reviewed-by: Rune Lillesveen <futhark@chromium.org> Commit-Queue: Mason Freed <masonf@chromium.org> Cr-Commit-Position: refs/heads/main@{#1301585} -- wpt-commits: 6bdb665f70cda739fe30fad86cc89fef3b81e535 wpt-pr: 46269
…, a=testonly Automatic update from web-platform-tests Remove auto value from anchor() function See the CSSWG resolution here: w3c/csswg-drafts#10312 (comment) which says: RESOLVED: Rename implicit to auto in position-anchor RESOLVED: Drop the keyword from the anchor() function The first part was taken care of in [1]. This CL takes care of the second part. [1] https://chromium-review.googlesource.com/c/chromium/src/+/5540275 Bug: 340206288 Change-Id: I33972e06104d061bb06232dac851877159b4fc92 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5542337 Reviewed-by: Anders Hartvoll Ruud <andruud@chromium.org> Auto-Submit: Mason Freed <masonf@chromium.org> Commit-Queue: Mason Freed <masonf@chromium.org> Cr-Commit-Position: refs/heads/main@{#1302830} -- wpt-commits: e9d9b035c90ea3e653816beebbe002ad6c18d608 wpt-pr: 46293
…ion-anchor:auto, a=testonly Automatic update from web-platform-tests Rename position-anchor:implicit to position-anchor:auto This was resolved here: w3c/csswg-drafts#10312 (comment) and will be added to the spec shortly. This is observable, but barely. After this CL, `implicit` won't be a valid value for `position-anchor`, so it'll resolve to the default value of `auto`. Meaning the behavior will be the same. But via the CSSOM, getComputedStyle(element).positionAnchor will now return "auto" instead of "implicit". Fixed: 340206288 Change-Id: I75b05310638dca70aa6aa8807da8cfe7c9624a32 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5540275 Reviewed-by: Rune Lillesveen <futhark@chromium.org> Commit-Queue: Mason Freed <masonf@chromium.org> Cr-Commit-Position: refs/heads/main@{#1301585} -- wpt-commits: 6bdb665f70cda739fe30fad86cc89fef3b81e535 wpt-pr: 46269
…, a=testonly Automatic update from web-platform-tests Remove auto value from anchor() function See the CSSWG resolution here: w3c/csswg-drafts#10312 (comment) which says: RESOLVED: Rename implicit to auto in position-anchor RESOLVED: Drop the keyword from the anchor() function The first part was taken care of in [1]. This CL takes care of the second part. [1] https://chromium-review.googlesource.com/c/chromium/src/+/5540275 Bug: 340206288 Change-Id: I33972e06104d061bb06232dac851877159b4fc92 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5542337 Reviewed-by: Anders Hartvoll Ruud <andruud@chromium.org> Auto-Submit: Mason Freed <masonf@chromium.org> Commit-Queue: Mason Freed <masonf@chromium.org> Cr-Commit-Position: refs/heads/main@{#1302830} -- wpt-commits: e9d9b035c90ea3e653816beebbe002ad6c18d608 wpt-pr: 46293
Correct. The reduced version is already correct syntax with that meaning, it just will no longer be valid to write the |
The syntax of
position-anchor
is<dashed-ident> | implicit
with the initial value beingimplicit
. “Implicit” is a great spec word, but it is fairly advanced vocabulary and not a term we have put into the authoring syntax space before. The typical keyword for this kind of thing in CSS isauto
. We should rename it toauto
.The text was updated successfully, but these errors were encountered: