livingston / css3-mediaqueries-js Goto Github PK
View Code? Open in Web Editor NEWCSS3 Media Queries Shim
Home Page: http://code.google.com/p/css3-mediaqueries-js/
CSS3 Media Queries Shim
Home Page: http://code.google.com/p/css3-mediaqueries-js/
v1.0 fixes a few bugs and was recently released (https://code.google.com/p/css3-mediaqueries-js/), but isn't available with bower. Would love if you could update this to 1.0 so that we could continue using with bower. Thanks much!
I added this patch on line 441 to add support for "link" tag
if(link.getAttribute("media").replace(/^\s\s_/, '').replace(/\s\s_$/, '') != ""){ text = "@media " + link.getAttribute("media").replace(/^\s\s_/, '').replace(/\s\s_$/, '') + "{" + text + "}"; }
has not been fully tested, it worked for me, something similar could be added for "style" tag.
As chrome has switched to Blink will it effect the library or has there been updates to make that not an issue, just curious
I discovered that "css3-mediaqueries" works only when the query contains "screen".
This query don't works:
@media (max-width: 460px) {
...
}
This query works properly:
@media screen and (max-width: 460px) {
...
}
When you use @-moz-document url-prefix() inside of a media query the script breaks throwing an error:
css-mediaqueries.js, line 4 character 1
Which places the error at the doctype declaration.
@-moz-document url-prefix() can be used outside of a media query without issue.
Tested in IE7&8.
It does not recognize the expression of the form:
@media all and (min-width: 800px)and (min-height: 600px) {
}
but recognizes:
@media all and (min-width: 800px) and (min-height: 600px) {
}
The difference is in the space beetween ')' and 'and'.
It seems the space is optional here: http://www.w3.org/TR/css3-mediaqueries/#syntax
I can not automatically create component css3-mediaqueries-js for rails.
https://rails-assets.org/components/new
When I wrote package name: css3-mediaqueries-js and Version(optional): 1.0.0, the rails-assets responded error: No tag found that was able to satisfy 1.0.0. Could you help me??
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.