Skip to content

Wildcard styles are applied to meta elements in head #121

Description

@bkilinc

I used a wildcard style for reset, like this ;

* {
    margin: 0;
    padding: 0;
    font-family: "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif;
    box-sizing: border-box;
    font-size: 14px;
  }

styles are also applied to all tags in head, and also to html and body tags. like this

<html xmlns="http://www.w3.org/1999/xhtml" style="box-sizing: border-box; font-family: 'Helvetica Neue ..">
<head style="box-sizing: border-box; font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, ...">
<meta name="viewport" content="width=device-width" style="box-sizing: border-box; font-family: 'Helvetic..">
<title style="box-sizing: border-box; font-family: 'Helvetica Neue',...."> 
<!-- .............. -->
</head>
</html>

workaround is using style like this;

body, body * {
    margin: 0;
    padding: 0;
}

but it looks like a bug and should be fixed.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions