W3C home > Mailing lists > Public > www-style@w3.org > December 2011

Text-selecting/highlighting content area or line box? (was [CSS 2.1] [Section 9.5.1] Vertical positioning of floating boxes)

From: Gérard Talbot <www-style@gtalbot.org>
Date: Wed, 7 Dec 2011 14:59:07 -0800
Message-ID: <900341107126b9f699a645de1f611758.squirrel@gtalbot.org>
To: "Alan Gresley" <alan@css-class.com>
Cc: "W3C www-style mailing list" <www-style@w3.org>

Le Dim 12 septembre 2010 23:01, Alan Gresley a écrit :
> Gérard Talbot wrote:

GT>> 3- When text-selecting/highlighting a chunk of text (by dragging the
>> mouse), we are in fact hightlighting what exactly? I think we are
>> highlighting the content area; I think we are not highlighting the line
>> box. Am I wrong?
AG> You are highlighting line boxes. Sort of like when you hover line
> boxes and the mouse pointer changes from a cursor to a text (indicates
> text that may be selected. Often rendered as an I-beam.).


In this testpage


when I text-select/highlight a chunk of text (by dragging the mouse), I
think we are highlighting (in reverse video) the content area if we are
using Firefox 8.0 or Opera 11.60 or Konqueror 4.7.3 (I will check other
browsers later). The vertical white gap between highlighted content area
is the leading (or top-half-leading of current line box plus
bottom-half-leading of previous line box) which is 9px in that page.

If we are using Chrome 15.0.874.121, then we are highlighting the content
area plus the top-half-leading of the line box plus the
bottom-half-leading of the previous line box. I reached such conclusion
after creating this testcase:


which is supposed to improve the



regards, Gérard
CSS 2.1 Test suite RC6, March 23rd 2011

Contributions to CSS 2.1 test suite

Web authors' contributions to CSS 2.1 test suite
Received on Wednesday, 7 December 2011 22:59:47 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:50:11 UTC