jonkemp / jonkemp/inline-css

Wildcard styles are applied to meta elements in head

Open
#121 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
438
Forks
77
PR merge metrics
No merged PRs in 30d

Description

I used a wildcard style for reset, like this ;
```css
* {
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


<!-- .............. -->
</head>
</html>
```
workaround is using style like this;
```css
body, body * {
margin: 0;
padding: 0;
}
```
but it looks like a bug and should be fixed.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.