No subject
Fri Mar 7 15:32:22 PST 2014
"the ::first-line and ::first-letter pseudo-elements do not apply to flex containers, and flex containers do not contribute a first formatted line or first letter to their ancestors."
Also a mail from CSS WG mailing list confirming the expected behavior:
http://lists.w3.org/Archives/Public/www-style/2014Dec/0305.html
--
You are receiving this mail because:
You are the assignee for the bug.
--1421409103.BbF658d0.25605
Date: Fri, 16 Jan 2015 03:51:43 -0800
MIME-Version: 1.0
Content-Type: text/html
<html>
<head>
<base href="https://bugs.webkit.org/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - ::first-line doesn't skip flex/grid elements"
href="https://bugs.webkit.org/show_bug.cgi?id=140543">140543</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>::first-line doesn't skip flex/grid elements
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr>
<tr>
<th>Product</th>
<td>WebKit
</td>
</tr>
<tr>
<th>Version</th>
<td>528+ (Nightly build)
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Unspecified
</td>
</tr>
<tr>
<th>OS</th>
<td>Unspecified
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>Normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P2
</td>
</tr>
<tr>
<th>Component</th>
<td>CSS
</td>
</tr>
<tr>
<th>Assignee</th>
<td>webkit-unassigned@lists.webkit.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>rego@igalia.com
</td>
</tr>
<tr>
<th>Depends on</th>
<td>140541
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=244760" name="attach_244760" title="Example to reproduce the issue">attachment 244760</a> <a href="attachment.cgi?id=244760&action=edit" title="Example to reproduce the issue">[details]</a></span>
Example to reproduce the issue
First <a class="bz_bug_link
bz_status_NEW "
title="NEW - REGRESSION: first-line doesn't affect any children"
href="show_bug.cgi?id=140541">bug #140541</a> should be fixed, but this issue was present before and it's still present in Blink (<a href="https://code.google.com/p/chromium/issues/detail?id=449481">https://code.google.com/p/chromium/issues/detail?id=449481</a>).
Example (attached) to reproduce the issue ("Green" should be green and "Black" should be black):
<style>
.first-line-green::first-line {
color: lime;
}
.flex {
display: flex;
}
</style>
<div class="first-line-green">
<div class="flex">
Black
</div>
Green
</div>
The flex is ignored as expected, however it doesn't go to the next element (like in the case of floated/positioned elements).
BTW, the same happens for grids.
More information about the webkit-unassigned
mailing list