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

Fix percentage height calculation, absolute containing block height calculations. #6903

Merged
merged 1 commit into from Aug 3, 2015

Conversation

glennw
Copy link
Member

@glennw glennw commented Aug 2, 2015

It's not possible to correctly determine during the css cascade whether the container height
is explicitly specified. Additionally, the spec https://drafts.csswg.org/css2/visudet.html#the-height-property says this should affect the used height, rather than the computed height.

This significantly improves the layout in #6643.

Review on Reviewable

@highfive highfive added the S-awaiting-review There is new code that needs to be reviewed. label Aug 2, 2015
@glennw
Copy link
Member Author

glennw commented Aug 2, 2015

r? @pcwalton

}
}

fn get_explict_block_size(&self, containing_block_size: Option<Au>) -> Option<Au> {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo: explict -> explicit

Also I'd remove the get from this method and the one above.

…alculations.

It's not possible to correctly determine during the css cascade whether the container height
is explicitly specified. Additionally, the spec https://drafts.csswg.org/css2/visudet.html#the-height-property
says this should affect the *used* height, rather than the computed height.

This significantly improves the layout in servo#6643.
@glennw
Copy link
Member Author

glennw commented Aug 3, 2015

@pcwalton Fixed up those typos / renames

@pcwalton
Copy link
Contributor

pcwalton commented Aug 3, 2015

@bors-servo: r+

@bors-servo
Copy link
Contributor

📌 Commit b9fea3d has been approved by pcwalton

@bors-servo
Copy link
Contributor

⌛ Testing commit b9fea3d with merge 028707f...

bors-servo pushed a commit that referenced this pull request Aug 3, 2015
Fix percentage height calculation, absolute containing block height calculations.

It's not possible to correctly determine during the css cascade whether the container height
is explicitly specified. Additionally, the spec https://drafts.csswg.org/css2/visudet.html#the-height-property says this should affect the *used* height, rather than the computed height.

This significantly improves the layout in #6643.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6903)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

☀️ Test successful - android, gonk, linux1, linux2, linux3, mac1, mac2, mac3

@mbrubeck mbrubeck added S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. and removed S-awaiting-review There is new code that needs to be reviewed. labels Aug 3, 2015
@glennw
Copy link
Member Author

glennw commented Aug 3, 2015

@bors-servo retry

@bors-servo bors-servo merged commit b9fea3d into servo:master Aug 3, 2015
@glennw glennw deleted the fix-height-again branch December 12, 2016 20:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants