<!DOCTYPE html>
<html dir="rtl">
<head>
<meta charset="utf-8" />
<style>
html, body { overflow:hidden }
div{
  background: yellow;
  width:150px;
  height:50px;
  margin: 0 auto;
  text-align:right;
}
div:first-line {
  color: blue;
}
span {
  background: aqua;
  margin: 0 3px;
  box-decoration-break: clone;
}
</style>
</head><body><div dir="rtl">te<span>stבד</span>יקה</div></body></html>