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)
Core
CSS Parsing and Computation
Tracking
()
RESOLVED
DUPLICATE
of bug 317081
People
(Reporter: Oriol, Unassigned)
Details
Attachments
(1 file)
124 bytes,
text/html
|
Details |
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.
Updated•7 years ago
|
You need to log in
before you can comment on or make changes to this bug.
Description
•