Sfoglia il codice sorgente

Improve caret between inline widget rendering in manual tests.

Maciej Gołaszewski 6 anni fa
parent
commit
ae7c9ad581

+ 4 - 0
packages/ckeditor5-widget/tests/manual/inline-widget.html

@@ -14,6 +14,10 @@
 		padding: 4px 2px;
 		outline-offset: -2px;
 		line-height: 1em;
+		/* Set margins before and after the inline widget so the cursor between two instances is visible when one of them is focused.
+		   Optimized for Firefox due to bug in rendering selection in ZWS on Chrome. See ckeditor5#1607. */
+		margin-right: 1px;
+		margin-left: 3px;
 	}
 
 	placeholder::selection {