Skip to content

Commit

Permalink
fix: backwards compability with last of type.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Thulin committed Sep 23, 2024
1 parent 62c9728 commit a282353
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion source/php/Component/Image/image.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,22 @@

<style>
.c-image {
container-type: inline-size;
@supports (container-type: inline-size) {
container-type: inline-size;
}
}
.c-image__image {
@supports (container-type: inline-size) {
display: none;
}
}
.c-image__image:last-of-type {
@supports not (container-type: inline-size) {
display: block;
}
}
</style>

<figure class="{{ $class }}" {!! $attribute !!}>
Expand Down

0 comments on commit a282353

Please sign in to comment.