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

Updated clearfix #7

Merged
merged 1 commit into from May 7, 2011
Merged

Updated clearfix #7

merged 1 commit into from May 7, 2011

Conversation

superstructor
Copy link
Contributor

A clearfix method requiring fewer CSS properties was first discussed on this blog post

html5-boilerplate was subsequently updated paulirish/html5-boilerplate@ac92ae7

I did my own extensive testing in IE 6/7/8/9/10pre, Chrome 11/12, Safari 5, Firefox 3.0/3.6/4, Opera 10.63/11 and mobile Safari. Found only one regression between the two methods. In Firefox versions prior to 3.5 if the clearfix is applied to the first child of the body and the first child does not have non-zero padding then extra space will appear between the first child and the body as reported on the blog post.

I think that the one edge case with legacy Firefox versions is not worth the extra properties.

Imported clearfix in the index so it can be easily used when including the whole of nib via stylus include.

Used the support-for-ie variable to toggle zoom:1 as turned off it saves a few lines of compiled CSS per use of the mixin.

Also updated the comment noting the Firefox regression and a IE 6/7 issue that is the same between both clearfix methods.

I think this is pretty much done so now I can move onto working on other interesting things for nib =)

Cheers,
Isaac

@tj
Copy link
Collaborator

tj commented May 7, 2011

sounds good thanks!

tj added a commit that referenced this pull request May 7, 2011
@tj tj merged commit d3e2e7a into stylus:master May 7, 2011
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

Successfully merging this pull request may close these issues.

None yet

2 participants