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

Major CSS syntax issues (Validation) (Attribute Selectors)

    Details

    • Type: Bug
    • Status: Open
    • Priority: Low
    • Resolution: Unresolved
    • Affects Version/s: Aptana Studio 3.2.2
    • Fix Version/s: None
    • Component/s: CSS, Parsing, Validation
    • Labels:
    • Environment:

      Windows 7, OSX 10.*

    • Story Points:
      5

      Description

      Recreate problem:
      1. open up a CSS file, or create one.
      2. add..
      [attr*=value] {

      }
      or any selector which is similar in syntax.
      3. check validation.

      This is a valid CSS3 selector, although aptana studio 3 says it isnt. Can we alter the validation so it includes this?
      https://developer.mozilla.org/en-US/docs/CSS/Attribute_selectors
      http://www.w3.org/TR/css3-selectors/#attribute-selectors

      W3C spec states:
      [att*=val]
      Represents an element with the att attribute whose value contains at least one instance of the substring "val". If "val" is the empty string then the selector does not represent anything.
      Screen shot included
      ---------

      Attribute selector values inside a :not() argument do not validate. For example:
      audio:not([controls])

      { display: none; }

      < does not validate although it should.
      Aptana Studio doesn't seem to like the [controls] as an argument, although [controls] means any audio element with the controls attribute. This is perfectly valid. - Please see (w3c) link above.
      I've included a second screen shot for this too.

        Attachments

          Activity

            People

            • Assignee:
              pinnamuri Praveen Innamuri (Inactive)
              Reporter:
              jason87 Jason
            • Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:

                Git Integration