- From: Koji Ishii via GitHub <sysbot+gh@w3.org>
- Date: Wed, 02 Oct 2024 09:58:17 +0000
- To: public-css-archive@w3.org
kojiishi has just created a new issue for https://github.com/w3c/csswg-drafts: == [css-inline][css-text][css-pseudo] Define more details of the "first formatted line" == Discussing on wpt tests for [`text-box-trim`](https://drafts.csswg.org/css-inline-3/#propdef-text-box-trim) with @fantasai raised questions about the [first formatted line](https://drafts.csswg.org/css-pseudo/#first-formatted-line). Currently, the [`::first-line` pseudo-element](https://drafts.csswg.org/css-pseudo-4/#first-line-pseudo) and the [`text-indent` property](https://drafts.csswg.org/css-text-4/#text-indent-property) use this definition. [This test@jsbin](https://jsbin.com/vivihuf/edit?html,output) indicates that browsers use different criteria for the "first formatted line". <table> <tr><th colspan=2>Test</th><th>Gecko</th><th>WebKit</th><th>Blink</th></tr> <tr> <th rowspan=2>Content in a nested div</th> <th>text-indent</th> <td>Yes</td><td>Yes</td><td>Yes</td> </tr> <tr> <th>::first-line</th> <td>No</td><td>Yes</td><td>Yes</td> </tr> <tr> <th rowspan=2>An empty div before content</th> <th>text-indent</th> <td>No</td><td>No</td><td>No</td> </tr> <tr> <th>::first-line</th> <td>No</td><td>No</td><td>No</td> </tr> <tr> <th rowspan=2>An empty div before nested content</th> <th>text-indent</th> <td>Yes</td><td>Yes</td><td>Yes</td> </tr> <tr> <th>::first-line</th> <td>No</td><td>No</td><td>No</td> </tr> <tr> <th rowspan=2>An empty anonymous block before nested content</th> <th>text-indent</th> <td>Yes</td><td>Yes</td><td>Yes</td> </tr> <tr> <th>::first-line</th> <td>No</td><td>Yes</td><td>No</td> </tr> </table> Can we define the desired behavior for these cases? @fantasai @nt1m @vitorroriz @Clqsin45 @bfgeek @lilles @jfkthame Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10990 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 2 October 2024 09:58:18 UTC