We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
get-style
1 parent 28ea8d2 commit e000b59Copy full SHA for e000b59
src/lib.rs
@@ -1056,6 +1056,12 @@ impl Executor {
1056
}
1057
1058
1059
+ "get-style" => {
1060
+ let name = &self.pop_stack().get_string();
1061
+ let element: HtmlElement = self.pop_stack().get_element().dyn_into::<HtmlElement>().expect("You'are an idiot!");
1062
+ self.stack.push(Type::String(element.style().get_property_value(name).expect("チノちゃん「うるさいですね...」")));
1063
+ }
1064
+
1065
"set-style" => {
1066
let value = &self.pop_stack().get_string();
1067
let name = &self.pop_stack().get_string();
0 commit comments