Skip to content

Commit

Permalink
Allow elements with display:contents to be focusable.
Browse files Browse the repository at this point in the history
This aligns HTML with the conclusion in
w3c/csswg-drafts#2632 that elements with CSS
`display: contents` should be focusable just like normally-rendered
elements.
  • Loading branch information
dbaron committed Jun 14, 2023
1 parent f49c3d9 commit dd6f2d6
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -77538,8 +77538,8 @@ partial interface <span id="NavigatorUserActivation-partial">Navigator</span> {

<li>the element is not <span>inert</span>;</li>

<li>the element is either <span>being rendered</span> or <span>being used as relevant canvas
fallback content</span>.</li>
<li>the element is either <span>being rendered</span>, <span>being rendered by its
children</span>, or <span>being used as relevant canvas fallback content</span>.</li>
</ul>
<td headers="td-fa-1 th-fa-dom-rep">
The element itself.
Expand Down Expand Up @@ -123902,6 +123902,11 @@ console.assert(container.firstChild instanceof SuperP);
tested, but it is suggested that the timing match that of the Intersection Observer API. <ref
spec=INTERSECTIONOBSERVER></p>

<p>An element is <dfn>being rendered by its children</dfn> if it is not <span>being
rendered</span> but its children (if any) could <span data-x="being rendered">be rendered</span>,
as a result of CSS 'display: contents' <ref spec=CSSDISPLAY>, or some equivalent in other styling
languages.</p>

<hr>

<p>User agents that do not honor author-level CSS style sheets are nonetheless expected to act as
Expand Down

0 comments on commit dd6f2d6

Please sign in to comment.