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

box-model rule should not warn if box-sizing is inherited #544

Open
cowwoc opened this issue Oct 7, 2014 · 0 comments
Open

box-model rule should not warn if box-sizing is inherited #544

cowwoc opened this issue Oct 7, 2014 · 0 comments

Comments

@cowwoc
Copy link

cowwoc commented Oct 7, 2014

Given:

.moreInfo {
  float: left;
  height: 420px;
  width: 180px;
  padding: 20px;
  border-bottom: 1px solid #ccc;
  border-left: 1px solid #ccc;
  border-right: 1px solid #ccc;
  display: none;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

cssLint warns:

Using height with border-bottom can sometimes make elements larger than you expect. Don't use width or height when using padding or border. (box-model) Browsers: All

Expected behavior: cssLint should not issue a warning because box-sizing: border-box is inherited for .moreInfo so the warning does not apply.

@cowwoc cowwoc changed the title box-sizing rule should not warn if box-sizing is inherited box-model rule should not warn if box-sizing is inherited Oct 7, 2014
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