Skip to content

Improve native form validation handling #136

@robsonsobral

Description

@robsonsobral
  /* old browsers */
  &:invalid {
    /* Invalid input UI styles */    
  }

  &:valid {
    /* Valid input UI styles */    
  }

  @supports selector(:user-invalid) {
    &:invalid {
      /* override old browsers styles */
      /* Valid input UI styles */
    }

    &:user-invalid {
      /* Invalid input UI styles */
    }

    &:user-valid {
      /* Valid input UI styles */
    }
  }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions