Bug 182046 - [GTK] custom style sheet no longer works
Summary: [GTK] custom style sheet no longer works
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: WebKit Local Build
Hardware: PC Linux
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-01-24 06:11 PST by milovidov.o
Modified: 2018-01-24 07:02 PST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description milovidov.o 2018-01-24 06:11:58 PST
My environment:
  Linux mint 18.2
  Gtk theme: Adwaita
  Gtk version: major = 3, minor = 18, macro = 9
  GLib version: major = 2, minor = 48, macro = 1
  WebKit2Gtk version: major = 2, minor = 14, macro = 2

1. First problem
My style sheet works properly for WebKit2Gtk 2.14.2:
void addMySheet(WebKitUserContentManager *UCM, const gchar *css)
{
  WebKitUserStyleSheet *mySheet = webkit_user_style_sheet_new (css,
          WEBKIT_USER_CONTENT_INJECT_ALL_FRAMES, WEBKIT_USER_STYLE_LEVEL_USER, NULL, NULL);
  webkit_user_content_manager_add_style_sheet(UCM, mySheet);
}
And the sheet are ignored in WebKit2Gtk 2.18.0-2.18.5
The style sheet content is very simple: #id {display:none}

2. Second problem (ok with 2.14.2!)
  My program executes some js script with alert statement. JS window is alerted.
  After that when I move the JS window with mouse I see renderning problem for window
  that is under JS window. Only after I close JS window the window is restored.