Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-445

Many missing values for code completion of the CSS display property

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 8.2, 9.0, 11.2
    • 12.0
    • web - CSS Editor

    Description

      Code completion offers many options for the value of the CSS display property when editing a CSS file (see the attached screen shot), but there are still many possible values that  are not supplied.

      Based on the information provided in "CSS Display Module Level 3" (https://www.w3.org/TR/css-display-3) the following options should be added to code completion for the display property in NetBeans:

      flow
      flow-root
      flex
      grid
      subgrid
      ruby-base-container
      ruby-text-container
      contents
      inline-flex
      inline-grid

      **Updated on 6/27/18:

      [1] The problem with autocomplete for CSS is not confined to missing values for the display property. For example, no grid-... properties (e.g. grid-column-start) are suggested, nor is row-gap. The list of valid CSS properties and values used by autocomplete needs to be updated.

      [2] If a CSS property is not suggested during auto-completion then its valid use in CSS code will be incorrectly reported as an error (e.g. "Unknown property grid-column-gap").

      [3] A serious side effect of the previous issue is that genuine errors in CSS code may be much harder to identify because they are mixed in with bogus errors.

      Since this issue is more extensive and serious than the initial report above I have raised the priority to Major, and also updated the affected versions to include 8.2.

      Attachments

        1. nb445-display-flow-list-item.png
          7 kB
          Junichi Yamamoto
        2. nbDisplayValues.png
          67 kB
          Rick Hegarty

        Issue Links

          Activity

            People

              matthiasblaesing Matthias Bläsing
              skomisa Rick Hegarty
              Votes:
              3 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 50m
                  50m