Skip to content

Commit 59b4696

Browse files
authored
fix(css): make all style rules visible and editable (mdn#156)
1 parent 64d018e commit 59b4696

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

howto/object-fit.html

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,25 +7,22 @@
77
CSS Solutions: How to fill a box with an image without distorting it
88
</title>
99
<link rel="stylesheet" href="styles.css" />
10-
<style>
10+
<style class="editable">
1111
.wrapper {
1212
height: 200px;
1313
display: flex;
1414
gap: 20px;
1515
}
1616

1717
.box {
18-
flex: 1;
1918
border: 5px solid #000;
20-
border-radius: 0.5em;
2119
}
22-
</style>
2320

24-
<style class="editable">
2521
.box img {
2622
width: 100%;
2723
height: 100%;
2824
}
25+
2926
.box1 img {
3027
object-fit: cover;
3128
}
@@ -50,6 +47,16 @@
5047
</section>
5148

5249
<textarea class="playable playable-css" style="height: 300px">
50+
.wrapper {
51+
height: 200px;
52+
display: flex;
53+
gap: 20px;
54+
}
55+
56+
.box {
57+
border: 5px solid #000;
58+
}
59+
5360
.box img {
5461
width: 100%;
5562
height: 100%;

0 commit comments

Comments
 (0)