Skip to content

[SPANS] underlineOffset is incompatible with the box-sizing: border-box #115

@oleksandr-danylchenko

Description

@oleksandr-danylchenko

Issue

The offset between the highlight and the underline is achieved using the paddingBottom of the span:

if (style.underlineOffset)
span.style.paddingBottom = `${style.underlineOffset}px`;

However, that span also has the height priorly assigned:

Therefore, when the popular box-sizing: border-box style is used, the paddingBottom applied after height becomes ineffective!

box-sizing: content-box box-sizing: border-box
image image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions