Created
July 11, 2017 15:54
-
-
Save hildjj/41798503eb5e56a558648bf70568c60e to your computer and use it in GitHub Desktop.
Test if stylo is enabled in your browser
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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