The My Opera forums have been replaced with forums.opera.com. Please head over there to discuss Opera's products and features

See the new Forums

::first-line and ::first-letter inconsistencies

Forums » Dev.Opera » General Web Development Discussions

You need to be logged in to post in the forums. If you do not have an account, please sign up first.

Go to last post

8. December 2011, 10:54:16

Frenzie

Posts: 15571

::first-line and ::first-letter inconsistencies

Recently I've been playing around a little with drop-caps and the like for typographic effect and I found some inconsistencies across browsers (nothing surprising there), but also within Opera itself. Here's a testcase demonstrating my findings: http://fransdejonge.com/test/2011/first-line-letter-inconsistencies.html

Here are the links to the relevant specs.

http://www.w3.org/TR/selectors/#first-line
http://www.w3.org/TR/selectors/#first-letter

As far as I can tell they say Webkit is applying these properties correctly, which is the intuitive method in any case. Here's a relevant quote:

The first formatted line of an element may occur inside a block-level descendant in the same flow (i.e., a block-level descendant that is not out-of-flow due to floating or positioning). For example, the first line of the DIV in

This line...

is the first line of the P (assuming that both P and DIV are block-level).



Any thoughts before I report this as a bug?
The DnD Sanctuary — a safety net for My Opera's demise.

25. December 2011, 11:25:19

Frenzie

Posts: 15571

Reported as DSK-354135.
The DnD Sanctuary — a safety net for My Opera's demise.

Forums » Dev.Opera » General Web Development Discussions