Skip to content

[css-content] Implementations and spec disagree regarding content: url on elements #2889

Description

@emilio

Per spec, we're supposed to wrap the content in a box, and thus this:

<!doctype html>
<style>
div {
  content: url(..);
  border: 2px solid blue;
}
</style>
<div></div>

Is supposed to render a border on a block box, and the image as a replaced inline inside. Instead implementations replace the whole <div> with a replaced box.

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

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions