Closed Bug 1935181 Opened 8 months ago Closed 7 months ago

anchor-center is displayed in autocomplete for align-items property, although it's not recognized as a valid property yet

Categories

(DevTools :: Inspector: Rules, defect)

defect

Tracking

(firefox136 verified)

VERIFIED FIXED
136 Branch
Tracking Status
firefox136 --- verified

People

(Reporter: nchevobbe, Assigned: nchevobbe)

Details

Attachments

(1 file)

Steps to reproduce

  1. Navigate to data:text/html,<meta charset=utf8>
  2. Open the inspector
  3. On the body element rule, add a new align-items property

-> the anchor-center item is in the list. If you hit enter, the value is marked as invalid

Expected results

We shouldn't show the value if it's not going to be valid.


anchor-center is related to anchor positioning (https://developer.mozilla.org/en-US/docs/Web/CSS/align-items#anchor-center), which is currently being worked on. We should make sure to not have misleading values in the inspector.

InspectorUtils.getCSSValuesForProperty("align-items") does return anchor-center.
Jonathan, any idea what's happening here?

Flags: needinfo?(jwatt)
Assignee: nobody → nchevobbe
Status: NEW → ASSIGNED

(I tried fixing it myself, let's see how wrong I am :) )

Flags: needinfo?(jwatt)
Pushed by nchevobbe@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/a568ac65fd4e [devtools] Only return anchor-center in list_self_position_keywords when layout.css.anchor-positioning.enabled is true. r=dshin.
Status: ASSIGNED → RESOLVED
Closed: 7 months ago
Resolution: --- → FIXED
Target Milestone: --- → 136 Branch

I have reproduced this issue using Firefox 135.0a1 (2024.12.04) on Windows 11.
I can confirm this issue is fixed, I verified using Firefox 136.0b2 on Win 11, macOS 12 and on Ubuntu 22, now the anchor-center item is not present in the align-items property list.

Flags: qe-verify+
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: