@@ -183,20 +183,23 @@ export class DomRenderer extends Disposable implements IRenderer {
183183 ` font-style: italic;` +
184184 `}` ;
185185 // Blink animation
186+ const blinkAnimationUnderlineId = `blink_underline_${ this . _terminalClass } ` ;
187+ const blinkAnimationBarId = `blink_bar_${ this . _terminalClass } ` ;
188+ const blinkAnimationBlockId = `blink_block_${ this . _terminalClass } ` ;
186189 styles +=
187- `@keyframes blink_underline` + `_` + this . _terminalClass + ` {` +
190+ `@keyframes ${ blinkAnimationUnderlineId } {` +
188191 ` 50% {` +
189192 ` border-bottom-style: hidden;` +
190193 ` }` +
191194 `}` ;
192195 styles +=
193- `@keyframes blink_bar` + `_` + this . _terminalClass + ` {` +
196+ `@keyframes ${ blinkAnimationBarId } {` +
194197 ` 50% {` +
195198 ` box-shadow: none;` +
196199 ` }` +
197200 `}` ;
198201 styles +=
199- `@keyframes blink_block` + `_` + this . _terminalClass + ` {` +
202+ `@keyframes ${ blinkAnimationBlockId } {` +
200203 ` 0% {` +
201204 ` background-color: ${ colors . cursor . css } ;` +
202205 ` color: ${ colors . cursorAccent . css } ;` +
@@ -209,13 +212,13 @@ export class DomRenderer extends Disposable implements IRenderer {
209212 // Cursor
210213 styles +=
211214 `${ this . _terminalSelector } .${ ROW_CONTAINER_CLASS } .${ FOCUS_CLASS } .${ RowCss . CURSOR_CLASS } .${ RowCss . CURSOR_BLINK_CLASS } .${ RowCss . CURSOR_STYLE_UNDERLINE_CLASS } {` +
212- ` animation: blink_underline` + `_` + this . _terminalClass + ` 1s step-end infinite;` +
215+ ` animation: ${ blinkAnimationUnderlineId } 1s step-end infinite;` +
213216 `}` +
214217 `${ this . _terminalSelector } .${ ROW_CONTAINER_CLASS } .${ FOCUS_CLASS } .${ RowCss . CURSOR_CLASS } .${ RowCss . CURSOR_BLINK_CLASS } .${ RowCss . CURSOR_STYLE_BAR_CLASS } {` +
215- ` animation: blink_bar` + `_` + this . _terminalClass + ` 1s step-end infinite;` +
218+ ` animation: ${ blinkAnimationBarId } 1s step-end infinite;` +
216219 `}` +
217220 `${ this . _terminalSelector } .${ ROW_CONTAINER_CLASS } .${ FOCUS_CLASS } .${ RowCss . CURSOR_CLASS } .${ RowCss . CURSOR_BLINK_CLASS } .${ RowCss . CURSOR_STYLE_BLOCK_CLASS } {` +
218- ` animation: blink_block` + `_` + this . _terminalClass + ` 1s step-end infinite;` +
221+ ` animation: ${ blinkAnimationBlockId } 1s step-end infinite;` +
219222 `}` +
220223 `${ this . _terminalSelector } .${ ROW_CONTAINER_CLASS } .${ RowCss . CURSOR_CLASS } .${ RowCss . CURSOR_STYLE_BLOCK_CLASS } {` +
221224 ` background-color: ${ colors . cursor . css } ;` +
0 commit comments