Firefox 6 will support a number of properties from the draft module CSS3 Text

  • Tutorial
As you know, Firefox 5 was released on June 21, and a six-week gap is expected between the individual releases, so there is a little more than a week left until Firefox 6. Its beta version is already available , already the Firefox 6 for developers page on the MDN wiki contains a more or less final form , which contains a list of new features for the future new version of Firefox.

These features are not so few: the WebSockets support is updated and the series is turned on , element support has appeared, Tracked events to poke a finger and even mnogotyka ( the multitouch ), and so on. However, such innovations for their widespread use will still require some cross-platformness, so instead of them I was most pleased with CSS innovations, which are rather decorative and meaningful - so even if they don’t work, it’s not scary.

We are talking about the experimental (with the prefix "-moz-") implementation of four properties from the draft CSS Text Level 3 , and these are the properties -moz-text-decoration-color , -moz-text-decoration-line , -moz-text -decoration-style and -moz-hyphens .

I propose to carefully consider each of them, to look at the opportunities and prospects that they bring.

The -moz-text-decoration-color property allows you to set the color of the lines with which the text is underlined, underlined, crossed out, and so on. Previously, this color coincided with the color of the text, so the crutch for this property was a separate setting of the text color inside and outside the element, which provides underlining, underlining, crossing out, and so on; also sometimes resorted to border-bottom .

The -moz-text-decoration-line property allows you to choose between underlining, underlining, and striking through text (several types of lines can be applied to text at the same time).

Property-moz-text-decoration-style allows you to control the appearance of the line, making it simple, or double, or consisting of dots, or consisting of strokes, or wavy. I say without hiding: I have long thought that the WWW lacks precisely wavy lines. If the CSS language did not come to the rescue, then these lines would probably be drawn with anSVG backgroundor other similar crutch.

And here is the -moz-hyphens propertyirrelevant to underlining, underlining and crossing out; instead, it provides hyphenation within words. For the first time, it was openly announced that the browser may contain hyphenation in the words of several languages ​​of the world - and use this dictionary to automatically break words into parts when wrapping to a new line, if required by CSS. Firefox 6 will contain such a dictionary for English writing only.

Inspirational news.

Also popular now: