Hacker News new | ask | show | jobs
by zerovox 4632 days ago
Does this mean if you create a 100px high triangle, it has 100px of invisible padding on top?
1 comments

No. If you take the example animation, you can set border-left-color and border-right-color to transparent, and set border-top-width to 0. This will place the triangle in a bounding box of the correct width and height.