LibWeb: Set iframe border to 0px when frameborder attribute is invalid

Corresponds to 6e19cef90e
This commit is contained in:
Sam Atkins 2025-03-14 16:58:10 +00:00 committed by Tim Ledbetter
parent 415dd1be06
commit 6b8adb522c
Notes: github-actions[bot] 2025-03-14 20:34:42 +00:00
3 changed files with 33 additions and 4 deletions

View file

@ -48,6 +48,8 @@ private:
virtual void removed_from(Node* old_parent, Node& old_root) override;
virtual void attribute_changed(FlyString const& name, Optional<String> const& old_value, Optional<String> const& value, Optional<FlyString> const& namespace_) override;
virtual i32 default_tab_index_value() const override;
virtual bool is_presentational_hint(FlyString const&) const override;
virtual void apply_presentational_hints(GC::Ref<CSS::CascadedProperties>) const override;
// https://html.spec.whatwg.org/multipage/iframe-embed-object.html#the-iframe-element:dimension-attributes
virtual bool supports_dimension_attributes() const override { return true; }