-
Notifications
You must be signed in to change notification settings - Fork 27
Open
Labels
Description
Hi, first of all, thanks for the awesome plugin!
While testing in IE and in modern webkit browsers, I discovered few issues. The common culprit seems to be usage of table layout and the fact that relative positioning of elements is not always respected in this layout.
- In IE line hightlight is not displayed at all, because of custom variables, which I guess is ok. If you set regular background-color you'll find that
grvsc-line::beforepseudoelement is mispositioned:
- In modern Chrome, Safari and Edge, however,
position: relativeondisplay: table-rowongrvsc-lineis not respected, which results inwidth: 100%applied togrvsc-line::beforebeing equal to the width ofgrvsc-containerand notgrvsc-line. It causes problems with highlight beyond horizontal overflow:
Those styles seems to work as a workaround:
.grvsc-code {
position: relative;
width: 100%;
}
.grvsc-line {
position: static;
}Firefox has no issues:
Sources:





