Skip to content

Commit 407bcc8

Browse files
authored
modernize example (mdn#166)
* modernize example * modernize example * don't rely on color only
1 parent fd4c867 commit 407bcc8

File tree

3 files changed

+18
-18
lines changed

3 files changed

+18
-18
lines changed

feature-queries/and.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
}
1515
@supports (display: grid) and (shape-outside: circle()) {
1616
.box {
17-
border: 4px solid red;
17+
border: 4px dashed red;
1818
color: red;
1919
}
2020
}
@@ -25,7 +25,7 @@
2525
<section class="preview">
2626
<div class="box">
2727
If your browser supports display: grid and shape-outside: circle(), the
28-
text and border will be red.
28+
content will be red with a dashed border.
2929
</div>
3030
</section>
3131

@@ -36,15 +36,15 @@
3636
}
3737
@supports (display: grid) and (shape-outside: circle()) {
3838
.box {
39-
border: 4px solid red;
39+
border: 4px dashed red;
4040
color: red;
4141
}
4242
}</textarea
4343
>
4444

4545
<textarea class="playable playable-html" style="height: 120px">
4646
<div class="box">
47-
If your browser supports display: grid and shape-outside: circle(), the text and border will be red.
47+
If your browser supports display: grid and shape-outside: circle(), the content will be red with a dashed border.
4848
</div></textarea
4949
>
5050

feature-queries/not.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
}
1515
@supports not (row-gap: 10px) {
1616
.box {
17-
border: 4px solid red;
17+
border: 4px dashed red;
1818
color: red;
1919
}
2020
}
@@ -24,8 +24,8 @@
2424
<body>
2525
<section class="preview">
2626
<div class="box">
27-
If your browser does not support row-gap, the text and border will be
28-
red.
27+
If your browser does not support row-gap, the content will be
28+
red with a dashed border.
2929
</div>
3030
</section>
3131

@@ -36,15 +36,15 @@
3636
}
3737
@supports not (row-gap: 10px) {
3838
.box {
39-
border: 4px solid red;
39+
border: 4px dashed red;
4040
color: red;
4141
}
4242
}</textarea
4343
>
4444

4545
<textarea class="playable playable-html" style="height: 120px">
4646
<div class="box">
47-
If your browser does not support row-gap, the text and border will be red.
47+
If your browser does not support row-gap, the content will be red with a dashed border.
4848
</div></textarea
4949
>
5050

feature-queries/or.html

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@
1212
border: 4px solid blue;
1313
color: blue;
1414
}
15-
@supports (display: grid) or (display: -ms-grid) {
15+
@supports (font-smooth: always) or (-webkit-font-smoothing: always) {
1616
.box {
17-
border: 4px solid red;
18-
color: red;
17+
border: 4px dashed darkgreen;
18+
color: darkgreen;
1919
}
2020
}
2121
</style>
@@ -24,8 +24,8 @@
2424
<body>
2525
<section class="preview">
2626
<div class="box">
27-
If your browser supports display: grid or display: -ms-grid, the text
28-
and border will be red.
27+
If your browser supports font smoothing, the text
28+
and border will be green.
2929
</div>
3030
</section>
3131

@@ -34,17 +34,17 @@
3434
border: 4px solid blue;
3535
color: blue;
3636
}
37-
@supports (display: grid) or (display: -ms-grid) {
37+
@supports (font-smooth: always) or (-webkit-font-smoothing: always) {
3838
.box {
39-
border: 4px solid red;
40-
color: red;
39+
border: 4px dashed darkgreen;
40+
color: darkgreen;
4141
}
4242
}</textarea
4343
>
4444

4545
<textarea class="playable playable-html" style="height: 120px">
4646
<div class="box">
47-
If your browser supports display: grid or display: -ms-grid, the text and border will be red.
47+
If your browser supports font smoothing, the text and border will be green.
4848
</div></textarea
4949
>
5050

0 commit comments

Comments
 (0)