Open Bug 1524577 Opened 7 years ago Updated 3 years ago

"none" value unavailable in the list for "flex" property

Categories

(DevTools :: Inspector, defect, P2)

65 Branch
defect

Tracking

(Not tracked)

People

(Reporter: emmanuel.clement, Unassigned)

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:65.0) Gecko/20100101 Firefox/65.0

Steps to reproduce:

  1. Open the inspector (F12);
  2. set a flex property on a element;
  3. try to chose "none" value.

Actual results:

"none" is unavailable in the list of values (see attached files).

But when none is set manually, the behaviour is ok.

Expected results:

Having "none" value in the list.

Assignee: nobody → mratcliffe
Status: UNCONFIRMED → ASSIGNED
Has STR: --- → yes
Ever confirmed: true
OS: Unspecified → All
Priority: -- → P2
Hardware: Unspecified → All
Assignee: mratcliffe → nobody
Status: ASSIGNED → NEW

It appears that devtools/shared/css/generated/properties-db.js provides the information of what values are suggested. The values section for flex is missing "none."

  "flex": {
///...
    "values": [
      "-moz-available",
      "-moz-fit-content",
      "auto",
      "content",
      "fit-content",
      "inherit",
      "initial",
      "max-content",
      "min-content",
      "revert",
      "unset"
    ]
  },

Looking at the most recent change to this generated file it appears that this might require some cpp or rust changes in servo/components/style/values?

I'm out of my depth at this point, I hope this research helps though

Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: