Skip to content

Commit ab8096a

Browse files
committed
Merge branch 'mrtango-images-srcset' of https://github.com/plone/documentation into mrtango-images-srcset
2 parents 3ec7bbd + 32f726c commit ab8096a

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

docs/classic-ui/images.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -249,10 +249,10 @@ The `ImageScaling` view explicitly checks the permissions of the current user.
249249
To access image scales, which are normally not accessible to the current user, override the `validate_access` method in `plone.namedfile.scaling.ImageScale`.
250250

251251

252-
## srcset configuration
252+
## `srcset` configuration
253253

254-
In `/@@imaging-controlpanel` Plone allows you to define srcset's.
255-
A srcset can help the Browser to serve the best fitting image for the current users situation.
254+
In `/@@imaging-controlpanel` Plone allows you to define HTML `srcset` attributes.
255+
A `srcset` can help the browser serve the best fitting image for the current users situation.
256256
Which image scale is best for the user can be decided on different metrics.
257257

258258

@@ -270,14 +270,14 @@ The first is metric would be the viewport size.
270270
}
271271
```
272272

273-
With this definition the Browser will use the large scale (800px) when the viewport size is max 800px.
274-
When the viewport size is greater then 800px, the Browser will use the larger scale (1000px).
273+
With this definition the browser will use the `large` scale when the viewport's width is 800 pixels or fewer.
274+
When the viewport width is greater than 800 pixels, the browser will use the larger scale `1000px`.
275275

276276

277277
### Pixel density
278278

279279
Another metric is the pixel density of the users screen.
280-
This metric defines how many DPI per pixel the Screen is using.
280+
This metric denotes the pixel density, or resolution, of an output device in dots per inch (DPI).
281281

282282
```json
283283
{
@@ -289,13 +289,13 @@ This metric defines how many DPI per pixel the Screen is using.
289289
}
290290
```
291291

292-
With this definition the Browser will use the huge scale (1600px) when the screen has a density of 192 DPI per pixel also knows as `2x`.
292+
With this definition the browser will use the `huge` scale of 1600 pixels when the screen has a density of 192 DPI, also knows as `2x`.
293293
We use here two different media queries to also support older Safari versions.
294-
Mobile devices with Safari like iPhones are still only supporting the old non-standard media query.
295-
If you don't care about IE support you can also use `min-resolution: 2dppx` which is closer to `2x`.
294+
Mobile devices with Safari-like iPhones only support the old non-standard media query.
295+
If you do not care about IE support, you can use `min-resolution: 2dppx`, which is closer to `2x`.
296296
The most common variants are:
297297

298-
- `1x`: 96 DPI per pixel
298+
- `1x`: 96 DPI
299299
- `1.25x`: 120 DPI per pixel
300300
- `1.5x`: 144 DPI per pixel
301301
- `2x`: 192 DPI per pixel

0 commit comments

Comments
 (0)