mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 07:27:45 +00:00
LibWeb: Allow calc() values in image sizes
attribute
Note that we currently can't resolve calc() values without a layout node, so when normalizing an image's source set, we'll flush any pending layout updates and hope that gives us an up-to-date layout node. I've left a FIXME about implementing this in a more elegant and less layout-thrashy way, as that will require more architectural work.
This commit is contained in:
parent
9997f46593
commit
95097e47a7
7 changed files with 77 additions and 28 deletions
|
@ -96,6 +96,7 @@ public:
|
|||
using CalculatedOr<Length>::CalculatedOr;
|
||||
|
||||
Length resolve_calculated(NonnullRefPtr<CalculatedStyleValue> const&, Layout::Node const&) const override;
|
||||
[[nodiscard]] Length resolved(Length::ResolutionContext const&) const;
|
||||
};
|
||||
|
||||
class PercentageOrCalculated : public CalculatedOr<Percentage> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue