Comments on: ::first-line https://css-tricks.com Tips, Tricks, and Techniques on using Cascading Style Sheets. Wed, 04 Aug 2021 17:47:33 +0000 hourly 1 https://wordpress.org/?v=6.2.2 By: Mark Hewitt https://css-tricks.com/almanac/selectors/f/first-line/#comment-1658926 Tue, 22 Jan 2019 05:46:53 +0000 http://css-tricks.com/?page_id=14190#comment-1658926 In reply to Louis.

This library helped me out http://zencode.in/lining.js/ .. seems overkill, but it works.

]]>
By: David Yeiser https://css-tricks.com/almanac/selectors/f/first-line/#comment-1612570 Thu, 19 Oct 2017 13:55:11 +0000 http://css-tricks.com/?page_id=14190#comment-1612570 Here’s another ::first-line bug I encountered (with fix):
https://codepen.io/davidyeiser/pen/JrxBPd

]]>
By: James https://css-tricks.com/almanac/selectors/f/first-line/#comment-1607145 Wed, 01 Mar 2017 19:42:17 +0000 http://css-tricks.com/?page_id=14190#comment-1607145 Worth noting, I just learned Firefox (v41.0.1 at the time of this writing) will not allow :first-line to set line-height to lower than the element’s current setting.

Apparently not necessarily a bug as the spec leaves this up to interpretation by the browser but all others (Chrome, Safari, IE) perform as expected.

]]>
By: NetOperator Wibby https://css-tricks.com/almanac/selectors/f/first-line/#comment-1605744 Mon, 26 Dec 2016 04:15:22 +0000 http://css-tricks.com/?page_id=14190#comment-1605744 2016 is almost over and this Chrome bug still exists. Chromium is the new IE.

]]>
By: Owl https://css-tricks.com/almanac/selectors/f/first-line/#comment-1599367 Thu, 28 Jan 2016 23:13:55 +0000 http://css-tricks.com/?page_id=14190#comment-1599367 In reply to Louis.

So I know it’s not ideal, but until they fix this bug I’ve found this to be a helpful work around:

font-variant: small-caps;

Like I said, not ideal, but it’s been enough for some projects I’ve worked on.

]]>
By: Tony Brasunas https://css-tricks.com/almanac/selectors/f/first-line/#comment-1595191 Thu, 11 Jun 2015 20:27:20 +0000 http://css-tricks.com/?page_id=14190#comment-1595191 Yes, this bug in Chrome / WebKit is awful and persistent and inexplicable. Never thought I’d say it, but Chrome really needs to catch up to IE here.

]]>
By: Jacob Christensen https://css-tricks.com/almanac/selectors/f/first-line/#comment-1592523 Wed, 11 Feb 2015 22:30:36 +0000 http://css-tricks.com/?page_id=14190#comment-1592523 In reply to Aldin.

not really. because the ::first-line is independent of html markup, and therefore suits a fluid layout much better than span tags which assumes that this word right here is definitely the last word on this line of text.

]]>
By: Aldin https://css-tricks.com/almanac/selectors/f/first-line/#comment-1586769 Mon, 17 Nov 2014 22:50:12 +0000 http://css-tricks.com/?page_id=14190#comment-1586769 Nobody @GoogleChrome seems to care about it. :-) You can use span or something to achieve the desired effect still.

]]>
By: Michael https://css-tricks.com/almanac/selectors/f/first-line/#comment-1579962 Wed, 16 Apr 2014 18:48:10 +0000 http://css-tricks.com/?page_id=14190#comment-1579962 In reply to Louis.

That is unbelievable. How long has this bug been known, and there is absolutely no attempt to remedy it?

]]>
By: Louis https://css-tricks.com/almanac/selectors/f/first-line/#comment-617686 Tue, 29 Oct 2013 17:44:01 +0000 http://css-tricks.com/?page_id=14190#comment-617686 There’s a really annoying bug in Chrome that prevents text-transform: uppercase from working on ::first-line:

https://code.google.com/p/chromium/issues/detail?id=129669
https://code.google.com/p/chromium/issues/detail?id=142827

Might want to add that to the article because it’s a very old bug (known since Chrome 3 or earlier) and nobody on the Chrome team seems to be following up on it.

]]>