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

element, in a position:relative + overflow:hidden element, is shifted #7373

Closed
paulrouget opened this issue Aug 26, 2015 · 2 comments
Closed

Comments

@paulrouget
Copy link
Contributor

<div style="overflow:hidden;position:relative;width:400px;height:40px;top:20px;background:red">
<span style="font-size:40px">foobar</span>
</div>

In the div, if top:X, the div is shifted down by X. It's expected. But the span is also shifted down by X within the div.

screen shot 2015-08-26 at 09 23 33

@paulrouget
Copy link
Contributor Author

cc @pcwalton

@paulrouget paulrouget changed the title inline element, in a position:relative + overflow:hidden element, is shifted element, in a position:relative + overflow:hidden element, is shifted Aug 26, 2015
@paulrouget
Copy link
Contributor Author

Apparently, it's fixed now. Probably because of 2276d64

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