Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update scrollHeight and scrollTop #2458

Merged
merged 1 commit into from
Feb 18, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions crates/web-sys/src/features/gen_HtmlElement.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,34 @@ extern "C" {
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"]
pub fn set_title(this: &HtmlElement, value: &str);
# [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = scrollHeight)]
#[doc = "Getter for the `scrollHeight` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/scrollHeight)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"]
pub fn scroll_height(this: &HtmlElement) -> i32;
# [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = scrollHeight)]
#[doc = "Setter for the `scrollHeight` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/scrollHeight)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"]
pub fn set_scroll_height(this: &HtmlElement, value: i32);
# [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = scrollTop)]
#[doc = "Getter for the `scrollTop` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/scrollTop)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"]
pub fn scroll_top(this: &HtmlElement) -> i32;
# [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = scrollTop)]
#[doc = "Setter for the `scrollTop` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/scrollTop)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"]
pub fn set_scroll_top(this: &HtmlElement, value: i32);
# [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = lang)]
#[doc = "Getter for the `lang` field of this object."]
#[doc = ""]
Expand Down
4 changes: 4 additions & 0 deletions crates/web-sys/webidls/enabled/HTMLElement.webidl
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ interface HTMLElement : Element {
// metadata attributes
[CEReactions]
attribute DOMString title;
[CEReactions]
attribute long scrollHeight;
[CEReactions]
attribute long scrollTop;
[CEReactions]
attribute DOMString lang;
// attribute boolean translate;
Expand Down