mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-26 22:38:51 +00:00
LibWeb: Implement :enabled and :disabled pseudo classes to spec
Previously we only considered an element disabled if it was an <input> element with the disabled attribute, but there's way more elements that apply with more nuanced disabled/enabled rules.
This commit is contained in:
parent
c85fcd442f
commit
2133b7d58a
Notes:
sideshowbarker
2024-07-17 06:32:16 +09:00
Author: https://github.com/Lubrsi
Commit: 2133b7d58a
Pull-request: https://github.com/SerenityOS/serenity/pull/15393
7 changed files with 82 additions and 10 deletions
|
@ -28,6 +28,8 @@ public:
|
|||
|
||||
int index() const;
|
||||
|
||||
bool disabled() const;
|
||||
|
||||
private:
|
||||
friend class Bindings::OptionConstructor;
|
||||
friend class HTMLSelectElement;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue