The translateZ(0.001px) hack was used in the past to force GPU rendering of an element, which would work fine in most browsers if the value was 0. 0.001px would however prevent a bug in Firefox that would lead to a subtle shaking.
Don’t forget you’re trapped in a decaying body, on a giant floating rock in the middle of infinite black space and literally no one knows why. Don’t question the CSS 😂😂😂
As someone who used angular material before, there are some cases where the default selector is very specific and you have to resort to things like this to override it.
69
u/jaZoo Feb 18 '23
The
translateZ(0.001px)hack was used in the past to force GPU rendering of an element, which would work fine in most browsers if the value was 0.0.001pxwould however prevent a bug in Firefox that would lead to a subtle shaking.23
u/Voltra_Neo Feb 18 '23
My guess is that the line-height is 41px and the font-size 32px
9
u/MurdoMaclachlan public boolean isInt(int i) { return true; } Feb 18 '23
Image Transcription: Code
I'm a human volunteer content transcriber and you could be too! If you'd like more information on what we do and why we do it, click here!
2
u/[deleted] Feb 18 '23
Don’t forget you’re trapped in a decaying body, on a giant floating rock in the middle of infinite black space and literally no one knows why. Don’t question the CSS 😂😂😂
1
u/walmartgoon Feb 19 '23
Font name?
3
u/fresh_in_fresh_out Feb 18 '23
Seems like being precise wasn't that important, so probably not
1
u/nordcomputer Feb 19 '23
It is important - dont you see that?
1
u/uplink42 Feb 22 '23
As someone who used angular material before, there are some cases where the default selector is very specific and you have to resort to things like this to override it.