-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Comments
+1 |
3 similar comments
+1 |
+1 |
+1 |
It now is in Safari. |
+1 |
2 similar comments
+1 |
+1 |
I posted a demo of this property at http://labs.jensimmons.com/examples/initial-letter.html, along with a note about a current bug. |
@jensimmons i'm getting a 404 on that page :/ |
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.) |
+1 |
1 similar comment
+1 |
The Safari bug is fixed in the new Safari Technology Preview. |
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 :) |
+1 |
2 similar comments
+1 |
+1 |
+1 |
2 similar comments
+1 |
+1 |
Some news about Initial Letter: |
+1 |
Now available at http://caniuse.com/#feat=css-initial-letter |
Thanks @Fyrd! |
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.The text was updated successfully, but these errors were encountered: