<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Comments inside calc() allowed - http://wkb.ug/123082</title> | |
<style> | |
div { height: 50px; background-color: green; font-size: 50px; } | |
#t1 { width: calc(50px + 1em) } | |
#t2 { width: calc(50px + /* Comment allowed */ 1em) } | |
#t3 { width: calc(150px - /* Comment allowed */ 1em) } | |
#t4 { width: calc(50px * /* Comment allowed */ 2) } | |
#t5 { width: calc(200px / /* Comment allowed */ 2) } | |
</style> | |
</head> | |
<body> | |
<p>You should see a green rectangle below</p> | |
<div id="t1"></div> | |
<div id="t2"></div> | |
<div id="t3"></div> | |
<div id="t4"></div> | |
<div id="t5"></div> | |
</body> | |
</html> |