You’re viewing an archive of outdated material. Visit The Web Standards Project’s updated site to learn about our current mission.

Web Standards Project: CSS: Bugs in Opera: Problems in Handling of Whitespace

The following code is in the stylesheet for this page:

BODY	{
	background-color: #006;
	color:	#F5F5F5;
	}	
		
A:link	{	
	color:	#F63;
	background:	#006;
	}	
		
A:visited	{	
	color:	#6F6;
	background:	#006;
	}	

This paragraph has a link to the main webstandards page and a link to nowhere.org. Unvisited links should be orange. Visited links should be light green. Why aren't they? Opera has trouble dealing with the fact that there are two tabs in the blank line separating the BODY block from the A:link block, and two tabs in the line separating the A:link block from the A:visited block. (This doesn't happen if the selector is EM instead: it only seems to fail for A:link or A:visited.) We have a version without the tabs that works correctly.

Note. For this test to show the problem, it is important that the "Link Presentation" settings do not specify that you want framed links. For some reason, setting Framed links causes the colours to be overrideen.

To turn link frames back off from within Opera, select Preferences, Link Presentation and then uncheck the checkbox labeled Framed in the panel labelled Common.