Perhaps do the following:
You should have two separate paragraphs, the first of which is blue and it is inside the div, the second is blue and can be found outside the div.
Set the z-order so that white text is on top, then a div and a blue paragraph appear. The div should also have an overflow attribute: hidden.
This part is a bit tedious. Place the blue text somewhere, for example, ypu currently has at (100; 200). Then set the white paragraph so that the position of the divs moves to the upper left corner + the position of the paragraph relative to the div is equal to the position of the first paragraph. So, if you have a div in (10; 20), then you need to have a paragraph at (90; 180) relative to the div.
This works in most browsers where z-order works. However, you can get around this by putting items in the place of the ridge
Here I made an example
https://goo.gl/PafOMJ
This is currently the shortest solution.
BΓ‘lint
source share