Uploaded image for project: 'Aptana Studio'
  1. Aptana Studio
  2. APSTUD-2875

CSS filter validation fails for arbitrary properties preceded by dash "-"

    Details

      Description

      Version: 3.0.3.201107031836-7E3787HFCUI_BKKW3QUIyJbthJkF

      According to my validation filters for CSS I have "^\s*-.*" which should filter out any property preceded by a "-", and yet if I type in "-background-color: #123" I get a "property -background-color does not exist" error. If I then add yet another dash to make it "--background-color" the error goes away.

      Bad habit, or not, I tend to use dashes in stay of /* */ style comments, for single lines, so this behaviour is a minor annoyance.

      Thanks.

        Activity

        Hide
        mxia Michael Xia added a comment - - edited

        Hi Richard,

        The filter you have't filter out that specific error because the error has a space before the leading -, which your filter excludes. You would need ".*-.*" for the filter, or you prefer something more specific, "Property\s*-.*doesn't exist.*".

        Show
        mxia Michael Xia added a comment - - edited Hi Richard, The filter you have't filter out that specific error because the error has a space before the leading -, which your filter excludes. You would need ".*-.*" for the filter, or you prefer something more specific, "Property\s*-.*doesn't exist.*".
        Hide
        reames@asymmetricventures.com Richard added a comment -

        Oh, I misunderstood what the filters are actually filtering. I thought they filtered the actual line of code, not the error/warning that is produced.

        Show
        reames@asymmetricventures.com Richard added a comment - Oh, I misunderstood what the filters are actually filtering. I thought they filtered the actual line of code, not the error/warning that is produced.
        Hide
        mxia Michael Xia added a comment -

        Added the expression to the default list of validation filters for CSS. If you have modified the default list in the preferences, clicking on Restore Defaults would reset them. This will be available in the 3.0.4 release and the next nightly update.

        Show
        mxia Michael Xia added a comment - Added the expression to the default list of validation filters for CSS. If you have modified the default list in the preferences, clicking on Restore Defaults would reset them. This will be available in the 3.0.4 release and the next nightly update.
        Hide
        cheadley Clayton Headley added a comment -

        Verified in 3.0.4. Closing Bug.

        Show
        cheadley Clayton Headley added a comment - Verified in 3.0.4. Closing Bug.

          People

          • Assignee:
            mxia Michael Xia
            Reporter:
            reames@asymmetricventures.com Richard
          • Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development

                Poker Sessions

                This issue is currently not assigned to any Poker Session.