Skip to content

Commit

Permalink
Add check firefox has() support
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Muda committed Oct 11, 2023
1 parent ebdc5aa commit 8d79f49
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions src/utilities/_reset.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,27 @@
margin: 0
}

/* Check Firefox has() support */
@supports not selector(:has(a)) {

.o-container .o-orbit {
display: none;

}

.o-container::before {
background-color: yellow;
content: '°ⓩ Orbit is not yet supported by 🦊 Firefox (until v.120)';
text-shadow: 0 0 2px red;
font-size: 18px;

}

.o-container::after {
content: "To experience Orbit, enable 'layout.css.has-selector.enabled' in your Firefox settings. Just head to about:config!";
text-shadow: 0 0 2px rgba(253, 2, 2, 0.384);
font-size: 18px;

}
}

0 comments on commit 8d79f49

Please sign in to comment.