Skip to content

IE < edge doesn't like content: '' #32

Description

@johann-sonntagbauer

I face problems with the following clearfix implementation:

var clearFix = {
  '*zoom': '1',

  '&:before': {
    content: "''",
    display: 'table'
  },

  '&:after': {
    content: "''",
    display: 'table',
    clear: 'both'
  }
};

The Problem with the definition are the quotes. When the content is specified with double quotes than there is no Problem in IE and other browsers a well. Is there any reason why the content is implemented in that special way?

When you are ok with that proposal I will formulate a PR for that.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions