Skip to content

Instantly share code, notes, and snippets.

@hildjj
Created July 11, 2017 15:54
Show Gist options
  • Save hildjj/41798503eb5e56a558648bf70568c60e to your computer and use it in GitHub Desktop.
Save hildjj/41798503eb5e56a558648bf70568c60e to your computer and use it in GitHub Desktop.
Test if stylo is enabled in your browser
<!DOCTYPE html>
<html>
<style>
body {
background: white;
}
#test:first-line {
color: white;
}
</style>
<body>
<div id='test'>Stylo ENABLED<br>
If stylo is disabled, this is the only line you'll see.
</div>
<p>
<div>
This test relies on the CSS
<a href='https://developer.mozilla.org/en-US/docs/Web/CSS/::first-line'>:first-line</a>
selector not being <a href='https://bugzilla.mozilla.org/show_bug.cgi?id=1324619'>implemented</a> in stylo yet.
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment