1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-28 19:55:10 +00:00

LibWeb: Support appearance: none for <progress> elements

This disables this system progress bar, and instead creates one
out of pseudo elements, that can be selected and styled with the
::-webkit-progress-bar/value selectors.
This commit is contained in:
MacDue 2022-07-22 16:08:03 +01:00 committed by Andreas Kling
parent d7d34d88e5
commit 57c6792458
3 changed files with 53 additions and 7 deletions

View file

@ -31,7 +31,11 @@ public:
// https://html.spec.whatwg.org/multipage/forms.html#category-label
virtual bool is_labelable() const override { return true; }
bool using_system_appearance() const;
private:
void progress_position_updated();
bool is_determinate() const { return has_attribute(HTML::AttributeNames::value); }
};