New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 798257 link

Starred by 1 user

Issue metadata

Status: Assigned
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Mac
Pri: 3
Type: Bug



Sign in to add a comment

Incorrect handling of line-height on ::first-line

Reported by bzbar...@gmail.com, Jan 2 2018

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:59.0) Gecko/20100101 Firefox/59.0

Steps to reproduce the problem:
1. Load attached testcase

What is the expected behavior?
The two blocks should look identical.

What went wrong?
The two blocks do not look identical.

Did this work before? N/A 

Does this work in other browsers? N/A

Chrome version: 65.0.3298.3 (Official Build) dev (64-bit)  Channel: n/a
OS Version: OS X 10.12
Flash Version: 

https://drafts.csswg.org/selectors-3/#first-line says:

   The ::first-line pseudo-element is similar to an inline-level element, but with certain restrictions

but in Chrome it's not acting like an inline-level element is supposed to in terms of line-height handling.
 
bar.html
368 bytes View Download

Comment 1 by bzbar...@gmail.com, Jan 2 2018

Note that https://drafts.csswg.org/css-pseudo-4/#first-line-styling has the same language about ::first-line being an inline.

See also https://bugs.webkit.org/show_bug.cgi?id=181209 for the corresponding WebKit issue.
Labels: Needs-Triage-M65
Labels: Needs-Bisect
Cc: vamshi.k...@techmahindra.com
Labels: -Needs-Bisect Triaged-ET M-65 OS-Linux OS-Windows
Status: Untriaged (was: Unconfirmed)
Able to reproduce the issue on reported chrome version 65.0.3298.3 and on the latest canary 65.0.3309.0 using Windows 10, Ubuntu 14.04 and Mac 10.13.1. As the issue is seen from M50(50.0.2634.0) considering it as non-regression and marking it as Untriaged. Hence removing Needs-Bisect label.

Thanks!

Comment 5 by e...@chromium.org, Jan 5 2018

Owner: kojii@chromium.org
Status: Assigned (was: Untriaged)

Comment 6 by kojii@chromium.org, Jan 5 2018

Labels: -M-65
Confirmed, thank you. Changing the target.

Comment 7 by kojii@chromium.org, Jan 5 2018

Labels: -Pri-2 Pri-3
I can't reproduce on Safari even with <br>. Edge shows the same behavior as Blink.

Sign in to add a comment