Skip to content

Adjust table padding and body margin defaults to match IE.

Gabriel Ivăncescu requested to merge insn/wine-gecko:css-defaults into master

Gecko's defaults differ from those of native IE.

Here's a simple test html to show the differences (open in Wine's IE and native IE and compare screenshots):

test.html:

<!DOCTYPE html>
<html><head><link rel="stylesheet" type="text/css" href="style.css"/></head>
<body><table><thead><tr><th></th></tr></thead><tr><td></td></tr><tr><td></td></tr></table></body></html>

style.css:

table
{
	border-width: 0pt;
	border-spacing: 0pt;
	border-collapse: collapse;
}

th
{
	background-color: #ff0000;
	width: 10px;
	height: 10px;
}

td
{
	background-color: #cccc00;
	width: 10px;
	height: 10px;
}

The cells and header are 10x10 each in IE, while 12x12 in wine without this patch. The body margin is also 2 pixels larger on IE.

Merge request reports

Loading