HTMLで達成したい次のユースケースがあります
I've two div element with background red and blue. The blue div is added later of which a part overlaped with red div.
I have the option of "send to back" which sends the selected div to back of other div.
If I apply this to blue div and select blue div it should look like below image

基本的に私はの機能を模倣しようとしていArrange --> Order --> Send to backますGoogle Presentation
私はz-index成功しなかった。background-gradientの重複部分を使用できますが、blue div transparent回避したい計算がいくつか含まれます。
HTMLでこれを達成するにはどうすればよいですか?
どんな助けでも大歓迎です。
注: すべての要素divは Update を使用して配置position: absolute
されます。を選択すると、次のようになります (境界線が強調表示されています)。red divblue divz-indexblue divred div

blue divここで、重なっている部分を選択しても表示されred divません (明らかに小さいため) が、 select.it 時に表示されるようにしz-indexたいと考えています。border