Skip to content

Conversation

@vpegado
Copy link
Contributor

@vpegado vpegado commented Mar 26, 2013

When using input elements to store the state of your css classes it is very useful to know if you can use the feature or not.

@stucox
Copy link
Member

stucox commented Mar 26, 2013

Duplicate of #767 - could you comment on differences between the two implementations?

@vpegado
Copy link
Contributor Author

vpegado commented Mar 26, 2013

I couldn't find #767 when looking for this feature test.
The only differences are:

  • in testStyles() #767 uses 2 unnecessary nodes while this don't.
  • in testStyles() #767 checks the value of elem.lastChild.offsetLeft while this checks the appended element directly with cb.offsetWidth

Except for implementation details the tests are equivalent.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't need Modernizr. here, can just use return testStyles(... because it's being passed into the module as a dependency

@stucox
Copy link
Member

stucox commented Mar 27, 2013

Great, thanks!

stucox pushed a commit that referenced this pull request Mar 27, 2013
Add feature detect for checked pseudo selector
@stucox stucox merged commit af5f597 into Modernizr:master Mar 27, 2013
@adrianjacob-o2
Copy link

Why cant i see css-checked in the custom build options?

@patrickkettner
Copy link
Member

It is in master, which is 3.0. It hasn't been added to the 2.7 branch
because it is not a bug fix, but rather a new feature.

If you need it, you will either need to manually edit your modernizr, or
download this repo, and build it yourself.

really sorry for the inconvenience :/

On Tue, Jan 7, 2014 at 10:14 AM, adrianjacob-o2 notifications@github.comwrote:

Why cant i see css-checked in the custom build options?


Reply to this email directly or view it on GitHubhttps://github.com//pull/879#issuecomment-31745326
.

patrick

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.

4 participants