Rendering is disturbed by mouseover or focus move checkbox and radio of WebView.
This problem occurs in both the Caspian and Modena, Modena is terrible.
test code:
import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.layout.StackPane;
import javafx.scene.web.WebView;
import javafx.stage.Stage;
public class CheckboxRadioInputTagTest extends Application{
@Override
public void start(Stage stage) throws Exception {
StackPane pane = new StackPane();
WebView browser = new WebView();
browser.getEngine().loadContent("<html><body>"
+ "<input type='checkbox' checked autofocus><br>"
+ "<input type='checkbox'><input type='checkbox'><br>"
+ "<input type='checkbox'><input type='checkbox'><input type='checkbox'><br>"
+ "<input type='checkbox'><input type='checkbox'><input type='checkbox'><input type='checkbox'><br>"
+ "<input type='checkbox'><input type='checkbox'><input type='checkbox'><input type='checkbox'><input type='checkbox'><br>"
+ "<input type='radio' name='r1'><br>"
+ "<input type='radio' name='r2'><input type='radio' name='r3'><br>"
+ "<input type='radio' name='r4'><input type='radio' name='r5'><input type='radio' name='r6'><br>"
+ "<input type='radio' name='r7'><input type='radio' name='r8'><input type='radio' name='r9'><input type='radio' name='r10'><br>"
+ "<input type='radio' name='r11'><input type='radio' name='r12'><input type='radio' name='r13'><input type='radio' name='r14'><input type='radio' name='r15'><br>"
+ "</body></html>");
pane.getChildren().add(browser);
Scene scene = new Scene(pane);
stage.setScene(scene);
stage.show();
}
public static void main(String[] args) {
Application.setUserAgentStylesheet(STYLESHEET_MODENA);
// Application.setUserAgentStylesheet(STYLESHEET_CASPIAN);
CheckboxRadioInputTagTest.launch(args);
}
}
This problem occurs in both the Caspian and Modena, Modena is terrible.
test code:
import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.layout.StackPane;
import javafx.scene.web.WebView;
import javafx.stage.Stage;
public class CheckboxRadioInputTagTest extends Application{
@Override
public void start(Stage stage) throws Exception {
StackPane pane = new StackPane();
WebView browser = new WebView();
browser.getEngine().loadContent("<html><body>"
+ "<input type='checkbox' checked autofocus><br>"
+ "<input type='checkbox'><input type='checkbox'><br>"
+ "<input type='checkbox'><input type='checkbox'><input type='checkbox'><br>"
+ "<input type='checkbox'><input type='checkbox'><input type='checkbox'><input type='checkbox'><br>"
+ "<input type='checkbox'><input type='checkbox'><input type='checkbox'><input type='checkbox'><input type='checkbox'><br>"
+ "<input type='radio' name='r1'><br>"
+ "<input type='radio' name='r2'><input type='radio' name='r3'><br>"
+ "<input type='radio' name='r4'><input type='radio' name='r5'><input type='radio' name='r6'><br>"
+ "<input type='radio' name='r7'><input type='radio' name='r8'><input type='radio' name='r9'><input type='radio' name='r10'><br>"
+ "<input type='radio' name='r11'><input type='radio' name='r12'><input type='radio' name='r13'><input type='radio' name='r14'><input type='radio' name='r15'><br>"
+ "</body></html>");
pane.getChildren().add(browser);
Scene scene = new Scene(pane);
stage.setScene(scene);
stage.show();
}
public static void main(String[] args) {
Application.setUserAgentStylesheet(STYLESHEET_MODENA);
// Application.setUserAgentStylesheet(STYLESHEET_CASPIAN);
CheckboxRadioInputTagTest.launch(args);
}
}
- relates to
-
JDK-8087689 [WebView] compute RadioButton/CheckBox sizes
-
- Open
-