Created
June 15, 2011 13:14
-
-
Save anddoutoi/1027051 to your computer and use it in GitHub Desktop.
Google Chrome bug with list-style-type: none / position: relative / floats combo. Tested in GC12.0.742.91
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 class="no-js" lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title></title> | |
<style> | |
ul { | |
margin: 0; | |
padding: 0; | |
} | |
div { | |
float: left; | |
width: 50px; | |
} | |
ul.a, | |
ul.c { | |
list-style-type: none; | |
} | |
ul.b li, | |
ul.c li { | |
position: relative; | |
} | |
</style> | |
</head> | |
<body> | |
<ul> | |
<li> | |
<div>1st</div> | |
<div>2nd</div> | |
<div>3rd</div> | |
</li> | |
</ul> | |
<ul class="a"> | |
<li> | |
<div>.a 1</div> | |
<div>.a 2</div> | |
<div>.a 3</div> | |
</li> | |
</ul> | |
<ul class="b"> | |
<li> | |
<div>.b 1</div> | |
<div>.b 2</div> | |
<div>.b 3</div> | |
</li> | |
</ul> | |
<ul class="c"> | |
<li> | |
<div>.c 1</div> | |
<div>.c 2</div> | |
<div>.c 3</div> | |
</li> | |
</ul> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment