Skip to content

Commit

Permalink
Experimenting with using padded span to replace hidden text nodes.
Browse files Browse the repository at this point in the history
  • Loading branch information
sanketj committed Jun 15, 2020
1 parent e376842 commit 8dcfacb
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions padded-spans-for-hidden-text-nodes.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<!DOCTYPE html>
<html>
<head>
<style>
</style>
</head>
<body>
<div>before</div>
<div>
<div>a</div>
<div style="position: absolute;">
<div>b</div>
<div>c</div>
</div>
<div>d</div>
</div>
<div>after</div>
<hr/>
<div>
<span style="font-size: 0; padding: 8px 20px;"></span>
</div>
<div>
<div>
<span style="font-size: 0; padding: 8px 4px;"></span>
</div>
<div style="position: absolute;">
<div>b</div>
<div>
<span style="font-size: 0; padding: 8px 3px;"></span>
</div>
</div>
<div>d</div>
</div>
<div>
<span style="font-size: 0; padding: 8px 15px;"></span>
</div>
</body>
</html>

0 comments on commit 8dcfacb

Please sign in to comment.