1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 08:48:11 +00:00

LibWeb: Stub out Element.scroll() and Element.scrollTo()

With this, we stop throwing exceptions in a way that makes MDN disappear
and it's now possible to browse MDN in Ladybird. :^)
This commit is contained in:
Andreas Kling 2023-06-07 17:11:01 +02:00
parent 7f90b0cab7
commit dd2080c55f
3 changed files with 21 additions and 0 deletions

View file

@ -1774,4 +1774,16 @@ HashMap<DeprecatedFlyString, CSS::StyleProperty> const& Element::custom_properti
return m_pseudo_element_custom_properties[to_underlying(pseudo_element.value())];
}
// https://drafts.csswg.org/cssom-view/#dom-element-scroll
void Element::scroll(double x, double y)
{
dbgln("FIXME: Implement Element::scroll(x: {}, y: {}", x, y);
}
// https://drafts.csswg.org/cssom-view/#dom-element-scroll
void Element::scroll(HTML::ScrollToOptions const&)
{
dbgln("FIXME: Implement Element::scroll(ScrollToOptions)");
}
}