Skip to content

Proper text layout dependent on background-color #271

Answered by mikke89
TheEclectus asked this question in Q&A
Discussion options

You must be logged in to vote

Hi, and welcome!

The first thing I will say is that in no way should the layout depend on the background-color property. I think there must be something else quirky going on here, I have never seen this behavior.

I tested your code and got the same layout as in your first screenshot. When I changed the background-color of the different rules you mention there is no change to the layout, as we would expect. Only the background changes.

Are you getting any log output / warnings? Please check that first.
Can you post a full example of a faulty render as well, so I can see if it reproduces here?

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@TheEclectus
Comment options

@TheEclectus
Comment options

@mikke89
Comment options

Answer selected by TheEclectus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants