I have encountered an issue where a simple grid, with the gaps set to 0, displays a small line when I apply the transform:scale(1.5) css property. I am unsure if this is a bug or if I am doing something incorrectly. Interestingly, the result in Firefox differs from the result in Chrome.
If this is indeed a bug, does anyone have any ideas on how to resolve it?
Take a look at the code snippet below:
body {
margin: 40px;
}
.wrapper {
display: grid;
grid-gap: 0px;
grid-template-columns: 100px 100px 100px;
background-color: #fff;
color: #444;
transform: scale(1.5);
transform-origin: 0 0;
}
.box {
background-color: #444;
color: #fff;
border-radius: 0px;
padding: 20px;
font-size: 150%;
}
.a {
grid-column: 1 / 3;
grid-row: 1;
}
.b {
grid-column: 3 ;
grid-row: 1 / 3;
}
.c {
grid-column: 1 ;
grid-row: 2 ;
}
.d {
grid-column: 2;
grid-row: 2;
}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<div class="wrapper">
<div class="box a">A</div>
<div class="box b">B</div>
<div class="box c">C</div>
<div class="box d">D</div>
</div>
</body>
</html>