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

@media screen { @media (min-width: 0px) {} } working in current Chrome #154

Open
Volker-E opened this issue Oct 20, 2014 · 11 comments
Open
Labels

Comments

@Volker-E
Copy link

Hi!
The following rule actually affects placeholder rendering in Chrome 38.0.2125.104 and not only affects Safari ≤6

@media screen {
    @media (min-width: 0px) {
        .form__text::-webkit-input-placeholder {
            color: #FFF; 
        } 
     }
}
@jeffclayton
Copy link
Collaborator

Good work with your combo!

The exact stats on that media query hack are as follows:

/* Safari 6.1+, Firefox 11+, Chrome 26+ (and Opera 14+) */

@media screen { @media (min-width:0px) { .selector { property:value; } } }

Your addition of the webkit input placeholder does kill Firefox - great idea.

If you do this slight change you now have a hack that does this for any selector:

/* Safari 6.1+, Chrome 26+ (and Opera 14+) */

@media screen {
    @media (min-width: 0px) {
          _::-webkit-input-placeholder, .selector { property:value; } 
    }
}

@Volker-E
Copy link
Author

@jeffclayton Wait, am I missing something? Browserhacks.com says Everything but Internet Explorer and Safari ≤6 on @media screen { @media (min-width: 0px) {} }

@jeffclayton
Copy link
Collaborator

The stats have not been completely updated on the site.

@Volker-E
Copy link
Author

I don't understand how Everything but Internet Explorer and Safari ≤6 and Safari 6.1+, Firefox 11+, Chrome 26+ (and Opera 14+) go together? How is it possible that f.e. Internet Explorer is not getting the rule any more?

@jeffclayton
Copy link
Collaborator

Internet explorer still is not included.

@jeffclayton
Copy link
Collaborator

Everything but internet explorer still is correct (no internet explorer before and still no internet explorer now).

Here is what you are unaware of:

When that hack was posted, Firefox had been tested for newer versions not older ones. Version 11 and newer support this hack. Version 10 and below do not.

Safari 6 was out but not Safari 7 and 8 yet either.

Hugo informed me they are not actively updating the site at this time.

@Volker-E
Copy link
Author

At least "they are not actively updating the site at this time" should be articulated on the site, as there are rules affecting f.e. firefox ≥ 28 - so it seems actively maintained

@jeffclayton
Copy link
Collaborator

Not everything. Only a few changes here or there. Hugo told me that recently they don't have time.

@jeffclayton
Copy link
Collaborator

[https://github.com//issues/39] scroll to the bottom):

HugoGiraudel commented 29 days ago
Sorry we don't have much time working on BrowserHacks. :(

@jeffclayton
Copy link
Collaborator

I test for them, trust me that the data I gave you is valid. Your hack is still good work.

@jeffclayton
Copy link
Collaborator

We edited together the Firefox and Chrome ones. [https://github.com//issues/139] started with @guillaume-simons posting info on @supports hacks. It is a good read. Very nice stuff there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants