mirror of
https://github.com/servo/servo.git
synced 2025-09-05 04:28:22 +01:00
Implement the :focus pseudo-class selector
Fixes #5460. This supports for simple focusable elements that are their own DOM anchors, like text `input` fields.
This commit is contained in:
parent
ad6c511a5e
commit
791fa3757d
10 changed files with 106 additions and 9 deletions
15
tests/ref/focus_selector_ref.html
Normal file
15
tests/ref/focus_selector_ref.html
Normal file
|
@ -0,0 +1,15 @@
|
|||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<style>
|
||||
#a {
|
||||
outline: 2px solid orange;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<input id="a">
|
||||
<input id="b">
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue