Bug where content will not overflow
I have had a bug twice where content will not overflow outside its container. I forget that I had set 'contain: content' in the CSS.
'contain' in CSS isolates a part of the HTML allowing the browser to speed up the rendering partly by stopping content overflowing into other areas. .
I was changing the color of each letter of the text with Javascript. I wanted to separate this from the large main content of the page which did not change. So I added 'contain'. It made a small diference.
There are more tips at: bbingo.xyz/t
Comments
Post a Comment