Internet Explorer se comporte différemment de Firefox, Chrome, Opera, Safari. Voir ma question: HTML link with padding and CSS style active does not workOù dois-je signaler un bug - Firefox ou Internet Explorer?
Est-ce un comportement indéfini? Ou je dois signaler un bug. Si plus tard, alors quels navigateurs vont bien?
Voici un code de test:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>css active padding href problem</title>
<style type="text/css">
a{
background:#CCC;
border:1px solid #666;
padding:0 35px 0 0;
}
a:active{
padding:0 0 0 35px;
}
</style>
</head>
<body>
<div>
<p>Click on <i>Stack</i> - href does not work.
Click on <i>Overflow</i> - href works.
All browsers are affected.
Except IE.</p>
<a href="https://stackoverflow.com/">StackOverflow</a>
</div>
</body>
</html>