1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 16:47:36 +00:00

LibWeb: Add initial implementation of Element.blur()

This implementation includes a first cut at run the unfocusing steps
from the spec, with many things left unimplemented.

The viewport related spec steps in particular don't seem to map to
LibWeb concepts, which makes figuring out if things are properly focused
much more difficult.
This commit is contained in:
Andrew Kaster 2022-10-02 14:42:47 -06:00 committed by Linus Groh
parent f08a979b96
commit a0d5724a58
3 changed files with 94 additions and 2 deletions

View file

@ -44,6 +44,8 @@ public:
void click();
void blur();
bool fire_a_synthetic_pointer_event(FlyString const& type, DOM::Element& target, bool not_trusted);
// https://html.spec.whatwg.org/multipage/forms.html#category-label