Re: [csswg-drafts] [css-display][css-aam][selectors-4] How elements with `display:contents` get focused?

It's not clear to me that focusing elements without a box is great in general... It'd be confusing to have to tab twice to get to the `<input>` in:

```html
<!doctype html>
<div style="display: contents" tabindex="0">
  <input>
  <div tabindex="0">Focused?</div>
</div>
```

Which UI should the browser show when the display: contents element is focused? Note that it has no box, it's descendants could be anywhere in the layout tree. It seems like a really weird behavior to explain to any user IMO... I could be convinced otherwise I guess.

In any case agreed that we should special-case as little as needed. Special cases = bugs.

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

Received on Tuesday, 1 May 2018 01:19:31 UTC