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

[core] fix containing block size of absolutely positioned element #3292

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Fitzmaz
Copy link
Contributor

@Fitzmaz Fitzmaz commented May 7, 2022

Fix http://dotwe.org/vue/8d92197521649a17842fddf7cf67cc76

Brief Description of the PR

According to this reference:

If the position property is absolute, the containing block is formed by the edge of the padding box of the nearest ancestor element that has a position value other than static (fixed, absolute, relative, or sticky).

The border of the ancestor element should be excluded when calculating the size of the containing block.

pr

Checklist

@CLAassistant
Copy link

CLAassistant commented May 7, 2022

CLA assistant check
All committers have signed the CLA.

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

Successfully merging this pull request may close these issues.

None yet

2 participants