james438
04-15-2011, 04:58 AM
I have discovered an interesting bug in Opera. It might not be a bug, but look at the following:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<TITLE>
Web Design and Anime Reviews</TITLE>
<style type='text/css'>
@charset "utf-8";
body, html, *{
scrollbar-face-color: #FF0000!important;
scrollbar-highlight-color: #FF6666!important;
scrollbar-3dlight-color: #FF9999!important;
scrollbar-darkshadow-color: #660000!important;
scrollbar-arrow-color: #FFCCCC!important;
scrollbar-shadow-color: #FF0000!important;
scrollbar-track-color: #330000!important;
}
</style>
</head>
<body>
This <sub class="that_word">→</sub> word.<br>
</body>
</html>
For some reason the code above will not work.
However, when I move the <html> tag to before the doctype tag the css will work.
Is there a way to get this to work when the html tag is placed after the doctype? If you are wondering I am attempting to customize the scrollbars of my Opera browser to color the scrollbars when the color is not defined in webpages.
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<TITLE>
Web Design and Anime Reviews</TITLE>
<style type='text/css'>
@charset "utf-8";
body, html, *{
scrollbar-face-color: #FF0000!important;
scrollbar-highlight-color: #FF6666!important;
scrollbar-3dlight-color: #FF9999!important;
scrollbar-darkshadow-color: #660000!important;
scrollbar-arrow-color: #FFCCCC!important;
scrollbar-shadow-color: #FF0000!important;
scrollbar-track-color: #330000!important;
}
</style>
</head>
<body>
This <sub class="that_word">→</sub> word.<br>
</body>
</html>
For some reason the code above will not work.
However, when I move the <html> tag to before the doctype tag the css will work.
Is there a way to get this to work when the html tag is placed after the doctype? If you are wondering I am attempting to customize the scrollbars of my Opera browser to color the scrollbars when the color is not defined in webpages.