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

fixed bug in css/transforms3d feature detect #1704

Merged
merged 1 commit into from
Oct 23, 2015
Merged

fixed bug in css/transforms3d feature detect #1704

merged 1 commit into from
Oct 23, 2015

Conversation

JoshuaWise
Copy link
Contributor

There was a known bug in the css/transforms3d feature detect, where, if the body tag has a border, this test would incorrectly fail. Feature detects should not fail due to reasonable design decisions. This merge fixes the bug.

@modernizr-savage
Copy link

Tests failed. Automated cross-browser testing via Sauce Labs and Travis CI shows that the JavaScript changes in this pull request are: BUSTED

Commit: 8d22aec
Build details: https://travis-ci.org/modernizr-savage/Modernizr/builds/84028702

(Please note that this is a fully automated comment.)

@patrickkettner
Copy link
Member

What known bug are you referring to?

On Oct 6, 2015, at 9:59 PM, Joshua Wise notifications@github.com wrote:

There was a known bug in the css/transforms3d feature detect, where, if the body tag had any margin, padding, or border on it, this test would incorrectly fail. Feature detects should not fail due to reasonable design decisions. This merge fixes the bug.

You can view, comment on, or merge this pull request online at:

#1704

Commit Summary

fixed bug in css/transforms3d feature detect
File Changes

M feature-detects/css/transforms3d.js (9)
Patch Links:

https://github.com/Modernizr/Modernizr/pull/1704.patch
https://github.com/Modernizr/Modernizr/pull/1704.diff

Reply to this email directly or view it on GitHub.

@JoshuaWise
Copy link
Contributor Author

The bug is documented in the code

Of course, that comment describes that the bug occurs when the DIV has margin, padding, or border on it, but the same bug occurs when the body has a border and any position other than position: static.

It can be seen here: http://jsfiddle.net/7yaukc9k/1/

@patrickkettner
Copy link
Member

@ryanseddon

@paulirish
Copy link
Member

I like the fix. Seems good.

@patrickkettner
Copy link
Member

keep the merge train a-mergin then

ryanseddon added a commit that referenced this pull request Oct 23, 2015
fixed bug in css/transforms3d feature detect
@ryanseddon ryanseddon merged commit 6ba72e7 into Modernizr:master Oct 23, 2015
@ryanseddon
Copy link
Member

👍 thanks @JoshuaWise

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.

5 participants