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

Generate fallback CSS automatically #1

Open
osuushi opened this issue Oct 29, 2013 · 0 comments
Open

Generate fallback CSS automatically #1

osuushi opened this issue Oct 29, 2013 · 0 comments

Comments

@osuushi
Copy link
Owner

osuushi commented Oct 29, 2013

To support older browsers (which don't allow data URIs to be used this way), and browsers with JS disabled, sixpack should be able to generate a CSS file that points to the original images files.

Requirements:

  1. Allow user to specify the base URL for the image directory in sixpack
  2. Generate a style sheet which points to those images, exactly replicating the end result of using the sixpack JSON file
  3. Generate a block of code to insert in the HTML file which will enable the fallback.
  • noscript code embedding the style sheet
  • call to LemonSoda method to trigger feature detection
  1. Feature detection for using data URIs in LemonSoda
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant