Last active
August 29, 2015 14:17
-
-
Save luniv/ed24087f183ef4ece1b8 to your computer and use it in GitHub Desktop.
Servo @Viewport rule: before/after
This file contains 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> | |
<head> | |
<style> | |
@viewport { | |
width: 200px; | |
} | |
#box { | |
background: blue; | |
height: 150px; | |
width: 200px; | |
} | |
#half-box { | |
background: green; | |
height: 50vh; | |
width: 50vw; | |
} | |
</style> | |
</head> | |
<body> | |
<div id="box"> | |
<div id="half-box"> | |
</div> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment