mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:47:36 +00:00
LibWeb: Add a class to represent the "source set" concept from HTML
Also comes with a little extra CSS parser helper for parsing "sizes" attributes in images.
This commit is contained in:
parent
9281bf7a01
commit
6fe4fcb74b
5 changed files with 500 additions and 0 deletions
|
@ -90,6 +90,8 @@ public:
|
|||
static ErrorOr<RefPtr<StyleValue>> parse_css_value(Badge<StyleComputer>, ParsingContext const&, PropertyID, Vector<ComponentValue> const&);
|
||||
static ErrorOr<RefPtr<CalculatedStyleValue>> parse_calculated_value(Badge<StyleComputer>, ParsingContext const&, Vector<ComponentValue> const&);
|
||||
|
||||
CSS::Length parse_as_sizes_attribute();
|
||||
|
||||
private:
|
||||
Parser(ParsingContext const&, Vector<Token>);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue