Bug 140541 - REGRESSION: first-line doesn't affect any children
Summary: REGRESSION: first-line doesn't affect any children
Status: RESOLVED CONFIGURATION CHANGED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL: http://jsbin.com/wutofa/1/edit
Keywords:
Depends on:
Blocks: 140542 140543
  Show dependency treegraph
 
Reported: 2015-01-16 03:27 PST by Manuel Rego Casasnovas
Modified: 2022-07-24 13:55 PDT (History)
6 users (show)

See Also:


Attachments
Example to reproduce the issue (129 bytes, text/html)
2015-01-16 03:27 PST, Manuel Rego Casasnovas
no flags Details
Safari 7 screenshot (OK) (9.12 KB, image/png)
2015-01-16 03:29 PST, Manuel Rego Casasnovas
no flags Details
Safari 8 screenshot (FAIL) (9.43 KB, image/png)
2015-01-16 03:29 PST, Manuel Rego Casasnovas
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Manuel Rego Casasnovas 2015-01-16 03:27:12 PST
Created attachment 244755 [details]
Example to reproduce the issue

This was working fine in Safari 7 but it's broken in Safari 8.

Example (attached) to reproduce the issue ("Green" should be green):

<style>
.first-line-green::first-line {
      color: lime;
}
</style>
<div class="first-line-green">
    <div>Green</div>
</div>

If the "Green" text is not wrapped by a "<div>" then it's green color.

Here you have a link to reproduce the issue with several cases:
http://jsbin.com/wutofa/1/edit
Comment 1 Manuel Rego Casasnovas 2015-01-16 03:29:04 PST
Created attachment 244756 [details]
Safari 7 screenshot (OK)
Comment 2 Manuel Rego Casasnovas 2015-01-16 03:29:32 PST
Created attachment 244757 [details]
Safari 8 screenshot (FAIL)
Comment 3 Ahmad Saleem 2022-07-24 10:27:13 PDT
I am unable to reproduce this in Safari 15.6 on macOS 12.5 and from attached test case, it is showing as "GREEN" text in Green color and it is matching with Chrome Canary 106 while Firefox Nightly 104 only show "Green" text as Black.

I am not sure on Web-Spec but considering Safari 7 had the behavior to show it as "GREEN", so I am assuming Safari 15.6 is showing it as fine and this can be considered as "RESOLVED CONFIGURATION CHANGED". If in case - Firefox is right, please ignore my testing and proceed accordingly. Thanks!
Comment 4 Ryosuke Niwa 2022-07-24 13:55:04 PDT
This works now.