fix: bug with multicolumn and pseudo selectors in Safari

Safari has a bug that hides the content of pseudo selectors (::before,
::after) when `column-count` is applied to the container.

The null transform hack solves the issue: https://stackoverflow.com/a/60849697/331361
This commit is contained in:
Stefan Imhoff
2022-03-27 09:37:00 +02:00
parent 54faefb63d
commit 8f9316208d

View File

@@ -80,6 +80,9 @@
inset-inline-start: -2.5rem;
position: absolute;
text-align: end;
/** Null transform hack to fix Safari bug
* https://stackoverflow.com/a/60849697/331361 **/
transform: translate3d(0, 0, 0);
width: 2rem;
}