1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-09-28 03:06:20 -04:00

[mujs] style.backgroundClip

This commit is contained in:
Witold Filipczyk 2024-06-04 14:28:49 +02:00
parent fe0c162b2b
commit de54805f6c

View File

@ -188,6 +188,15 @@ mjs_style_get_property_background(js_State *J)
mjs_style(J, "background");
}
static void
mjs_style_get_property_backgroundClip(js_State *J)
{
#ifdef ECMASCRIPT_DEBUG
fprintf(stderr, "%s:%s\n", __FILE__, __FUNCTION__);
#endif
mjs_style(J, "background-clip");
}
static void
mjs_style_get_property_backgroundColor(js_State *J)
{
@ -313,6 +322,15 @@ mjs_style_set_property_background(js_State *J)
mjs_set_style(J, "background");
}
static void
mjs_style_set_property_backgroundClip(js_State *J)
{
#ifdef ECMASCRIPT_DEBUG
fprintf(stderr, "%s:%s\n", __FILE__, __FUNCTION__);
#endif
mjs_set_style(J, "background-clip");
}
static void
mjs_style_set_property_backgroundColor(js_State *J)
{
@ -451,6 +469,7 @@ mjs_push_style(js_State *J, void *node)
js_newuserdata(J, "style", node, mjs_style_finalizer);
addmethod(J, "toString", mjs_style_toString, 0);
addproperty(J, "background", mjs_style_get_property_background, mjs_style_set_property_background);
addproperty(J, "backgroundClip", mjs_style_get_property_backgroundClip, mjs_style_set_property_backgroundClip);
addproperty(J, "backgroundColor", mjs_style_get_property_backgroundColor, mjs_style_set_property_backgroundColor);
addproperty(J, "color", mjs_style_get_property_color, mjs_style_set_property_color);
addproperty(J, "cssText", mjs_style_get_property_cssText, mjs_style_set_property_cssText);