9 lines
749 B
Plaintext
9 lines
749 B
Plaintext
srcset [HTML5]
|
|
|
|
A list of one or more strings separated by commas indicating a set of possible images for the user agent to use. Each string is composed of:
|
|
1. one URL to an image,
|
|
2. a width descriptor, that is a positive integer directly followed by 'w'. The default value, if missing, is the infinity.
|
|
3. a pixel density descriptor, that is a positive floating number directly followed by 'x'. The default value, if missing, is 1x.
|
|
|
|
Each string in the list must have at least a width descriptor or a pixel density descriptor to be valid. Among the list, there must be only one string containing the same tuple of width descriptor and pixel density descriptor.
|
|
The browser chooses the most adequate image to display at a given point of time. |