-
Notifications
You must be signed in to change notification settings - Fork 35
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
Specify srcset/sizes on img (was: Tweak example 3) #90
Comments
It can be, assuming that srcset's DPR switching in img is here to stay. I think there are 3 options forward with regard to
I'm in favor of 2, but I'm not sure it won't complicate matters. |
I think we should specify (2), that seems best for authors long-term. |
Agreed on option two. |
Re, option 2: at which point we might as well add Just playing devils advocate.. I'm not convinced the extra complexity is worth it. What's so special about |
I'm not 100% convinced either, but I'm not sure what that complexity is. I don't think specifying it would be complicated (@tabatkins - correct me if I'm wrong). I don't think implementing it would be significantly complicated either (the syntax parsers can be reused, etc). The advantage of 2, is that is enables to get rid of the last source of the picture markup, and if there's only one source (i.e. no art-direction), it enables to support variable width images and DPR switching without 3 is simpler in the sense that it gives the developer less options. @tabatkins - What do you say? |
(2) is probably less complexity compared to the current situation with different specs for As to why not use img instead of source: it wouldn't have a good back-compat story, I don't know what the algorithm would be like, and the markup would look pretty confusing I think. (3) would mean that it's not OK to ship a subset implementation of only |
I think #2 is fine. I haven't done it yet only because I was trying to leave |
This example is in the spec:
I think this could be:
right?
The text was updated successfully, but these errors were encountered: