[Webkit-unassigned] [Bug 238088] REGRESSION (Safari 15.4): <button> loses background color with certain styles applied

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Mar 21 06:34:45 PDT 2022


https://bugs.webkit.org/show_bug.cgi?id=238088

--- Comment #2 from Jordan Pittman <jordan at cryptica.me> ---
Some more data points:

1. All four of the points outlined in the original report *must* be met to reproduce this bug. If you remove the rules for any one of them the background color shows up.
2. This appears to be a rendering issue because

- Selecting the text in the button draws the background behind the bounding box of the selected text
- If you select the text, click the button, and then deselect the text the background behind the whole button is left drawn but the background is empty around the bounding box of the previously selected portion of the text

3. Adding a width with a small fixed value that causes the text to wrap will then cause the background to show up again.

4. Adding width: some_percentage (e.g. width: 100%) causes the background to draw in the additional, non-intrinsic-sized portion of the bounding box + some amount. It appears to be taking into account the margin of the viewport body element and adding this to the bounding box where the background is invisible. There's also rather weird interaction when adding a large amount of padding. There still extra spacing on top of all this and I'm not entirely sure where it comes from.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20220321/c81fb075/attachment-0001.htm>


More information about the webkit-unassigned mailing list