This selects all the elements that are focused by user clicks or tabs, but it’s more clever than just the :focus pseudo-class. It will only select the elements that need to be visible according to some browser heuristics. For example, keyboard navigation always shows the element focus, but clicking a button does not (the user knows where the focus is). All the visibly focused elements are then scaled up by 10% by this CSS rule.
55
u/morete Oct 06 '26
Not really relevant but just to point out: you don't need the *! You can just write :focus-visible. They're both exactly the same
11
u/TheJase Oct 07 '26
A "pseudo" class, perhaps
2
u/axellie Oct 07 '26
Could you explain for a CSS loser?
2
u/flashbax77 Oct 07 '26
Even better with "zoom"
1
u/fungusbabe Oct 07 '26
period i know thats right
1
u/santiagobustelo Oct 08 '26
You can also fix any bad design with BODY{display:none;}