Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for initial-letter CSS property #1926

Closed
hay opened this issue Sep 10, 2015 · 26 comments
Closed

Add support for initial-letter CSS property #1926

hay opened this issue Sep 10, 2015 · 26 comments

Comments

@hay
Copy link
Contributor

hay commented Sep 10, 2015

There's a W3C proposal for a new initial-letter property to introduce proper dropcap support in CSS.

Apparently this will be a feature of the upcoming iOS 9 Safari.

For those who think: but haven't we already got the :first-letter pseudoselector? You're right: but styling a dropcap also needs to take in account all the text surrounding the character, and that's notoriously tricky with regular CSS properties. This property will, for once and for all, allow 'proper' styling of dropcaps in CSS.

@Ugoku
Copy link
Contributor

Ugoku commented Sep 11, 2015

+1

3 similar comments
@lembitk
Copy link

lembitk commented Sep 13, 2015

+1

@cbourgois
Copy link

+1

@Quinter
Copy link

Quinter commented Sep 30, 2015

+1

@tobireif
Copy link

tobireif commented Oct 2, 2015

It now is in Safari.

@connorshea
Copy link
Contributor

+1

2 similar comments
@jensimmons
Copy link
Contributor

+1

@jawinn
Copy link

jawinn commented Jan 26, 2016

+1

@jensimmons
Copy link
Contributor

I posted a demo of this property at http://labs.jensimmons.com/examples/initial-letter.html, along with a note about a current bug.

@hay
Copy link
Contributor Author

hay commented Feb 29, 2016

@jensimmons i'm getting a 404 on that page :/

@jensimmons
Copy link
Contributor

Sorry about that — I'm half-way through setting up a new site of layout examples, and moved things around after posting here. Durp!

The initial-letter demo is here now: http://labs.jensimmons.com/examples/initial-letter.html. (And I fixed the link above, so it works now, too.)

@dauwhe
Copy link

dauwhe commented Mar 22, 2016

+1

1 similar comment
@enterprisey
Copy link

+1

@jensimmons
Copy link
Contributor

The Safari bug is fixed in the new Safari Technology Preview.

@achoukah
Copy link

achoukah commented May 5, 2016

I'm a sucker for things like this – sounds like a lovely idea. I'm sure there is a request somewhere here for :nth-letter(n) and :range-letters(2.10) too!

And while we're at it, :first-line, :nth-line(n), :last-line :)

@ryanwalters
Copy link

+1

2 similar comments
@cadars
Copy link

cadars commented Aug 23, 2016

+1

@julientaq
Copy link

+1

@Schweinepriester
Copy link
Contributor

+1

2 similar comments
@maddesigns
Copy link

+1

@siiron
Copy link

siiron commented Nov 4, 2016

+1

@jensimmons
Copy link
Contributor

Some news about Initial Letter:
It is being added to Firefox: https://bugzilla.mozilla.org/show_bug.cgi?id=1040714
The fix for the Safari 9 bug shipped in Safari 10.

@lujanfernaud
Copy link

+1

@Fyrd
Copy link
Owner

Fyrd commented Dec 10, 2016

@Fyrd Fyrd closed this as completed Dec 10, 2016
@hay
Copy link
Contributor Author

hay commented Dec 10, 2016

Thanks @Fyrd!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment