From 07c87dbe58c61dc24f4ac184a5aa3b07b0ac4efc Mon Sep 17 00:00:00 2001
From: Marcos Caceres
type
member. If the user agent doesn't support WebP,
- it falls back to the second icon of the same size (and density).
- The media type of this icon can then be either determined via a
- HTTP header, or can be sniffed by the user agent once the first few
- bytes of the icon are received.
+ it falls back to the second icon of the same size. The media type
+ of this icon can then be either determined via a HTTP header, or
+ can be sniffed by the user agent once the first few bytes of the
+ icon are received.
@@ -1517,8 +1515,7 @@
@@ -2014,11 +2011,11 @@
"sizes": "72x72 96x96 128x128 256x256"
},{
"src": "icon/hd_hi.svg",
- "sizes": "72x72",
- "density": 2
+ "sizes": "257x257"
}]
}
to use in various contexts depending on the semantics of the member
that is using the object (e.g., an icon that is part of an application
menu, etc.). For an image object, this specification provides
- developers with a means of specifying the dimensions, optimal pixel
- density, and media type of an image (i.e., a "responsive image"
- solution [[respimg-usecases]]). A user agent can use these values to
- select an image that is best suited to display on the end-user's device
- or most closely matches the end-user's preferences.
+ developers with a means of specifying the dimensions, and media type of
+ an image (i.e., a "responsive image" solution [[respimg-usecases]]). A
+ user agent can use these values to select an image that is best suited
+ to display on the end-user's device or most closely matches the
+ end-user's preferences.
density
member
-
- The density
member of an image object
- is the device pixel density for which this image was designed. The
- device pixel density is expressed as the number of dots per 'px' unit
- (equivalent to a dppx as defined in [[css3-values]]). The value is a
- positive number greater than 0. If the developer omits the value, the
- user agent assumes the value 1.0
.
-
- The steps for processing a density
member of an
- image are given by the following algorithm. The algorithm takes
- an image image object as an argument and returns a
- positive number.
-
density
as the argument returns
- false
:
- density
" as the argument.
- NaN
, +∞, or less than or
- equal to +0, then:
- sizes
member
@@ -2298,9 +2247,9 @@ src
, type
,
- sizes
, and density
. All properties
- initially set to undefined
.
+ properties src
, type
, and
+ sizes
. All properties initially set to
+ undefined
.
src
property to be
src.
@@ -2321,15 +2270,6 @@ sizes
property to be
sizes.
density
member of an
- image are given by the passing potential
- image .
- undefined
, set
- image's density
property to be
- value.
-