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-sizing指定方法の変更 #12

Closed
qrac opened this issue Jun 30, 2018 · 1 comment
Closed

box-sizing指定方法の変更 #12

qrac opened this issue Jun 30, 2018 · 1 comment

Comments

@qrac
Copy link
Owner

qrac commented Jun 30, 2018

#11 sanitize.css v6.0.0 反映 〜 細分化して検証

  • Added: box-sizing: border-box to *, ::before, ::after
  • Removed: box-sizing: border-box from html and box-sizing: inherit from
    html
// before
*,
::before,
::after {
	background-repeat: no-repeat; /* 1 */
	box-sizing: inherit; /* 2 */
}

html {
	box-sizing: border-box; /* 1 */
	cursor: default; /* 2 */
	-ms-text-size-adjust: 100%; /* 3 */
	-webkit-text-size-adjust: 100%; /* 3 */
}
// after
*,
::before,
::after {
  background-repeat: no-repeat; /* 1 */
  box-sizing: border-box; /* 2 */
}

html {
  line-height: 1.15; /* 1 */
  cursor: default; /* 2 */
  -ms-text-size-adjust: 100%; /* 3 */
  -webkit-text-size-adjust: 100%; /* 3 */
  word-break: break-word; /* 4 */
}
@qrac
Copy link
Owner Author

qrac commented Jun 30, 2018

sanitize.css側にはIssueなどは見つからなかった。

content-box を子要素に引き継いで利用することもないと思われるため採用する。

@qrac qrac changed the title 全体box-sizing指定方法の変更 box-sizing指定方法の変更 Jun 30, 2018
@qrac qrac closed this as completed Jun 30, 2018
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