ryanve / response.js

Responsive design toolkit
http://responsejs.com
Other
801 stars 123 forks source link

How to configure two sets for one div? #29

Closed aastudio closed 10 years ago

aastudio commented 11 years ago

Here are my breakpoints:

<body data-responsejs='{ 
    "create": [
        { "prop":"device-pixel-ratio", "prefix": "density", "breakpoints":[0, 1, 1.5] }
      , { "prop":"width", "breakpoints":[0, 320, 1025] }
    ]}'
>

How to write the html to show images which are retina 1.5 and 1025px?

I can't figure it out!

danielkoch commented 10 years ago

@aastudio actual I think it is not possible: See #37 and #10

ryanve commented 10 years ago

@danielkoch Correct. Currently .addTest is the only way to do it.

Closing in favor of #37