Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wildcard styles are applied to meta elements in head #121

Open
bkilinc opened this issue Jan 28, 2023 · 0 comments
Open

Wildcard styles are applied to meta elements in head #121

bkilinc opened this issue Jan 28, 2023 · 0 comments

Comments

@bkilinc
Copy link

bkilinc commented Jan 28, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant