Repository navigation
Conversation
b523ee5 to
9e56c94
Compare
3fe9ed8 to
96e15fc
Compare
commit: |
96e15fc to
e82d541
Compare
9e56c94 to
daa27f3
Compare
e82d541 to
278a76c
Compare
3ca42c7 to
1d7926d
Compare
278a76c to
bb7ca6e
Compare
c307dce to
d8b3f74
Compare
There was a problem hiding this comment.
selector side looks good! one thing my agent caught before we have styles based on these pseudos...
focus changes don't
notify().setActiveElementjust writes to thefociiWeakMap, so once the UA sheet (#138) or author styles have a rule likefieldset:focus-within { … }(spec), calling.focus()won't re-render. with replay from #143 it gets even worse, since the:focus-withinancestor isn't inchangesand its subtree gets replayed stale.
wonder if transitionActiveElement should just notify the old and new active elements? the ancestor walk in RenderApi.request already covers :focus-within. totally fine as a follow-up—sibling combinators and attribute selectors have the same style invalidation gap which we'll need to fix
This is a great catch! We can factor this in when I re-habilitate the other PRs in the focus/input/edit stack |
What does this PR do?
Adds :focus, :focus-within, and Element.matches(). Under the current keyboard-only policy, :focus-visible matches focused elements.
Type of change
Checklist
pnpm test)pnpm format)AI-generated code disclosure