Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Brian Thomas Smith <[email protected]>
  • Loading branch information
OnkarRuikar and bsmth authored Nov 14, 2024
1 parent 44c35b1 commit 4bcb5f0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
3 changes: 2 additions & 1 deletion files/en-us/web/css/font-weight/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ While many fonts have a particular weight corresponding to one of the numbers in

For TrueType or OpenType variable fonts, the "wght" variation is used to implement varying widths.

This demo loads with `font-weight: 500;` set. Change the value of the `font-weight` property to see the weight of the text change. Click "Play" in the code blocks below to edit the example in the MDN Playground:
This demo loads with `font-weight: 500;` set. Change the value of the `font-weight` property in the `.sample` selector to see the weight of the text change (e.g., 200, 700). Click "Play" in the code blocks below to edit the example in the MDN Playground:

```html live-sample___font-weight-example
<p class="sample">
Expand All @@ -186,6 +186,7 @@ This demo loads with `font-weight: 500;` set. Change the value of the `font-weig

.sample {
text-transform: uppercase;
font-weight: 500;
font:
1.5rem "MutatorSans",
sans-serif;
Expand Down
5 changes: 0 additions & 5 deletions files/en-us/web/css/image/image-set/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,6 @@ This example shows how to use [`image-set()`](https://drafts.csswg.org/css-image

{{EmbedLiveSample("image-set-example", "", "250px")}}

> [!NOTE]
> In the above example, the `-webkit` prefixed version is also used to support Chrome and Safari. In Firefox 90, support was added for `-webkit-image-set()` as an alias to `image-set()` (in order to provide compat where developers had not added the standard property).
### Using image-set() to provide alternative image formats

In the next example the `type()` function is used to serve the image in AVIF and JPEG formats. If the browser supports avif, it will choose that version. Otherwise it will use the jpeg version.
Expand All @@ -119,8 +116,6 @@ In the next example the `type()` function is used to serve the image in AVIF and

{{EmbedLiveSample("image-set-type-example", "", "250px")}}

{{EmbedGHLiveSample("css-examples/images/image-set-type.html", '100%', 600)}}

## Specifications

{{Specifications}}
Expand Down

0 comments on commit 4bcb5f0

Please sign in to comment.