Re: [csswg-drafts] [css-forms] Allow making <button> a real inline

What if the `appearance: none` alone would preserve the default `display: inline-block` behavior of the button (making it behave _similarly_ to how replaced elements behave, but _without any magic_), and changing its `display` to `inline` would convert it to the regular non-atomic inline box? Maybe _this_ could be web compatible? Are there many web pages that use _both_ `appearance: none` and `display: inline` for buttons while relying on their "replaced-element-like" behavior?

However, having the pseudo element that wraps all the content of the button could be useful for solving #2632 — it could get the default focus outline (similarly to that of the inline `a` element) even when the `button` element doesn't generate its own box.

-- 
GitHub Notification of comment by SelenIT
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3226#issuecomment-431694690 using your GitHub account

Received on Sunday, 21 October 2018 19:01:09 UTC