Skip to content

css-inline initial-letter-float-001-vrl-ref.html places the fake letter 12px away from where the mirrored vlr reference and the sibling vrl test put it #66186

Backlog

Description

@hclewk

Test: css/css-inline/initial-letter/initial-letter-float-001-vrl.html (reference initial-letter-float-001-vrl-ref.html)

initial-letter-float-001-vlr.html and initial-letter-float-001-vrl.html differ only in writing-mode (vertical-lr / vertical-rl). Their references differ in more than the mirroring:

  • vlr ref: .fake-initial-letter { float: left; height: 80px; width: 80px; margin-left: -4px; }
  • vrl ref: .fake-initial-letter { float: left; height: 80px; width: 80px; margin-right: 8px; }

The vlr value, -4px, is the letter centred on the three lines it covers (3 * 24px = 72px against an 80px box), which is also what initial-letter-drop-initial-vrl-ref.html uses for the same letter without the float (margin-right: -4px). The mirror image of the vlr reference is margin-right: -4px; the vrl reference instead sits the letter 12px (half a line) away from the block-start edge.

CSS Inline 3 section 7 (initial letters) aligns the initial letter box to the lines it spans, the same way in either block-flow direction, so the two tests should have mirrored expectations.

Chrome 156 (Chrome for Testing) fails both float-001-vrl (9000 px differ) and float-001-vlr (7200 px differ) with the same fonts, so the pair is not a passing baseline for either engine.

Proposed fix: change the vrl reference to margin-right: -4px (and check what the cyan float needs, since the letter must sit below it).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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