Skip to content

Margins of inline pseudo elements(:before and :after) are ignored. #12367

Closed

Description

@splav

Minimal case:

<!DOCTYPE html><html><head><style type="text/css">
  span:before { content:"a"; margin-right:5em; }
  span:after { content:"c"; margin-left:5em; }
</style></head>
<body><span>b</span></body>
</html>

Servo:
servo_inline_pseudo_margins
Firefox:
firefox_inline_pseudo_margins

If there are no objections, I would like to try to investigate it myself.
Any thoughts/ideas are welcome.

Activity

  1. notriddle commented on Jul 9, 2016

    @notriddle
    Contributor

    Random guess: fragment merging.

  2. added
    I-wrong
    C-assigned
    on Jul 9, 2016
  3. added
    C-has-manual-testcase
    on Jul 9, 2016
  4. added 4 commits that reference this issue on Aug 9, 2016
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

    A-layout/uncategorizedC-assignedC-has-manual-testcaseI-wrong

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions