Skip to content

Support percentage height #2029

Closed
Closed

Description

@SimonSapin

As of #1988, BlockFlow::assign_height_block_base has code like this:

let mut candidate_height_iterator = CandidateHeightIterator::new(
    fragment.style(), None);

None should instead be Some(containing_block_height) when that height can be resolved at this point. That is, it’s not auto nor a percentage that refers to something that can not be resolved at this point.

This probably involves propagating non-auto height down the tree in an earlier top-down pass.

See in http://dev.w3.org/csswg/css2/visudet.html#propdef-height

Activity

  1. SimonSapin commented on Apr 3, 2014

    @SimonSapin
    MemberAuthor

    Same in BlockFlow::assign_height_float, but BlockFlow::calculate_abs_height_and_margins looks already correct.

  2. SimonSapin commented on Apr 3, 2014

    @SimonSapin
    MemberAuthor
  3. added
    I-wrong
    on Sep 14, 2014
  4. self-assigned this
    on Sep 14, 2014
  5. added 2 commits that reference this issue on Sep 15, 2014
    1315a11
    c7e30f8
  6. added a commit that references this issue on Sep 19, 2014
    d9ae2a3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

A-layout/blockI-wrong

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions