Replies: 2 comments 2 replies
-
Hey! Thanks but this appears to be an issue regardless of wether or not Tailwind CSS is used, see: https://issues.chromium.org/issues/41464020 I converted this to a discussion since closing it feels wrong because it's still an issue but also we can't actionably close this so it doesn't feel like it should be in our issues list either. I did subscribe to the issue, hopefully it'll be resolved soon! |
Beta Was this translation helpful? Give feedback.
-
@philipp-spiess I understand that the chromium issue you linked looks similar, however I do not believe it is the same issue that I'm seeing. I am quite certain that this bug is specific to tailwind v4 because
|
Beta Was this translation helpful? Give feedback.
-
What version of Tailwind CSS are you using?
v4.1.3
What build tool (or framework if it abstracts the build tool) are you using?
Phoenix LiveView, but this presents itself in Tailwind playground as well, so it's not Phoenix related.
What version of Node.js are you using?
v20.9.0, but this presents itself in Tailwind playground as well
What browser are you using?
This bug appears in Chrome (and likely chromium-based browsers). I don't see it in Firefox or Safari.
What operating system are you using?
macOS
Reproduction URL
https://play.tailwindcss.com/k6m7r3zHoZ
(if you don't see it, try moving the horizontal divider between the html and preview -- it randomly disappears at some resolutions)
Describe your issue
Current behavior:
Tailwind 4.x
skew
utility classes on parent elements add border artifact with inner elements' background color extending to the full size of the parent in Chrome browsers.As can be seen in the Tailwind playground link above, the inner div has a
w-1/2
, but what looks like a 1-2px border appears in the child's background color along 1 or more edges of the parent element.Most commonly, you can see the "border" along the bottom edge, but if you drag the horizontal divider between the html and preview, you will see that at some resolutions the border appears along the right edge or even disappears altogether.
Note: the example uses
-skew-x-20
, but it also appears withskew-x-20
. Additionally, using inline styles:style="transform: skew(-20deg)"
instead of-skew-x-20
appears to behave as expected.Expected behavior:
None of the background color from the inner div should extend past the bounds of that element. This is current behavior for Tailwind 4.x on Firefox and Safari, and on all browsers for Tailwind 3.x
Beta Was this translation helpful? Give feedback.
All reactions