Closed Bug 1351595 Opened 7 years ago Closed 7 years ago

::first-line has no effect when the first child is a block

Categories

(Core :: CSS Parsing and Computation, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 317081

People

(Reporter: Oriol, Unassigned)

Details

Attachments

(1 file)

Attached file testcase
Consider this code:

    <style>
    div::first-line {
      color: green;
    }
    </style>
    <DIV><P>This line...</P></DIV>


The text remains black, unaffected by ::first-line.

This is wrong, https://drafts.csswg.org/css-pseudo-4/#first-text-line says

> For example, the first line of the DIV in <DIV><P>This line...</P></DIV>
> is the first line of the P (assuming that both P and DIV are blocks).

The text is green both on Chrome and Edge.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → DUPLICATE
See Also: 1351588
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: