Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Webkit: Vertical writing-mode with margin on auto width column renders too large #42

Open
JoshuaLindquist opened this issue Apr 20, 2018 · 0 comments

Comments

@JoshuaLindquist
Copy link

Reduced Test Case: https://jsfiddle.net/wzvwn1zg/3/

I was using writing-mode: vertical-rl to create a vertical headline down the left side of the page. I created two columns using grid-template: auto / auto 1fr;. After the page was published, a viewer pointed out that it was broken in Safari; the headline was centered in the page with a skinny column down the right side.

In Chrome, Firefox, and Edge, the first column expands only enough to fit the width of the content (which I believe is the intended behavior of auto). In Webkit (I have not been able to personally test with an "official" copy of Safari on a Mac), there are huge margins being added to more-or-less center the content in the view port.

I have margin: 0 auto set on the first column; this is for smaller screen widths to center the heading at the top of the page. Removing either the margin or the writing-mode makes the problem disappear.

The workaround I am using is to add margin: 0 inside a media query.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant