Skip to content

H1 margin discrepancy between normalize versions. #160

@JimBobSquarePants

Description

@JimBobSquarePants

Due to the removal of margin standardisation in normalize 2.x h1 tags within nested elements will now have an incorrect margin since only the font-size is getting set.

For example, the following markup:

<section>
    <aside>
        <article>
            <h1>heading</h1>
        </article>
    </aside>
</section>

Will be subject to the following selector in Chrome 24.0.1312.52

:-webkit-any(article,aside,nav,section) :-webkit-any(article,aside,nav,section) h1 {
    font-size: 1.17em;
    -webkit-margin-before: 1em;
    -webkit-margin-after: 1em;
}

In version 1.0.2 The margin will be consistent at 0.67em due to the setting of an overall font-size and margin rule for each header tag.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions