Skip to content

modernize example #166

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jan 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions feature-queries/and.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
}
@supports (display: grid) and (shape-outside: circle()) {
.box {
border: 4px solid red;
border: 4px dashed red;
color: red;
}
}
Expand All @@ -25,7 +25,7 @@
<section class="preview">
<div class="box">
If your browser supports display: grid and shape-outside: circle(), the
text and border will be red.
content will be red with a dashed border.
</div>
</section>

Expand All @@ -36,15 +36,15 @@
}
@supports (display: grid) and (shape-outside: circle()) {
.box {
border: 4px solid red;
border: 4px dashed red;
color: red;
}
}</textarea
>

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

Expand Down
10 changes: 5 additions & 5 deletions feature-queries/not.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
}
@supports not (row-gap: 10px) {
.box {
border: 4px solid red;
border: 4px dashed red;
color: red;
}
}
Expand All @@ -24,8 +24,8 @@
<body>
<section class="preview">
<div class="box">
If your browser does not support row-gap, the text and border will be
red.
If your browser does not support row-gap, the content will be
red with a dashed border.
</div>
</section>

Expand All @@ -36,15 +36,15 @@
}
@supports not (row-gap: 10px) {
.box {
border: 4px solid red;
border: 4px dashed red;
color: red;
}
}</textarea
>

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

Expand Down
18 changes: 9 additions & 9 deletions feature-queries/or.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
border: 4px solid blue;
color: blue;
}
@supports (display: grid) or (display: -ms-grid) {
@supports (font-smooth: always) or (-webkit-font-smoothing: always) {
.box {
border: 4px solid red;
color: red;
border: 4px dashed darkgreen;
color: darkgreen;
}
}
</style>
Expand All @@ -24,8 +24,8 @@
<body>
<section class="preview">
<div class="box">
If your browser supports display: grid or display: -ms-grid, the text
and border will be red.
If your browser supports font smoothing, the text
and border will be green.
</div>
</section>

Expand All @@ -34,17 +34,17 @@
border: 4px solid blue;
color: blue;
}
@supports (display: grid) or (display: -ms-grid) {
@supports (font-smooth: always) or (-webkit-font-smoothing: always) {
.box {
border: 4px solid red;
color: red;
border: 4px dashed darkgreen;
color: darkgreen;
}
}</textarea
>

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

Expand Down