Problem: Upon pseudo class activation (hover, focus, or active), the pseudo element (before or after) causes the button to offset as if it was positioned absolute. It looks like it offsets half the button height. This issue only happens when there are multiple buttons next to each other with the same styles. See snippet for example. This was found on Safari 13 and 14 beta. Snippet: """ <!doctype html> <html> <head> <style> .a { width: 48px; height: 48px; } .a:focus:before { content: ''; } </style> </head> <body> <button class="a"></button> <button class="a"></button> </body> </html> """
<rdar://problem/69010390>