Fixing native selection rendering for floats

This fixes a problem with how Chrome renders native selection around floated elements. By adding pseudo elements before and after block aliens, the rendering is fixed.

Change-Id: I7fdbb8f4c42e29d0574b308b8c5740066bb58e94
This commit is contained in:
Christian Williams 2012-11-07 15:07:43 -08:00
parent f4a674e2c5
commit 05c3e088d0

View file

@ -18,6 +18,12 @@
position: static !important;
}
/* Fix weird Chrome native selection involving floated elements */
.ve-ce-alienBlockNode:before,
.ve-ce-alienBlockNode:after {
content: '';
}
.ve-ce-alienBlockNode,
.ve-ce-metaBlockNode {
display: block;