Closed
Bug 5973
Opened 25 years ago
Closed 25 years ago
Poor rendering of underlines
Categories
(Core :: Layout, defect, P3)
Tracking
()
VERIFIED
INVALID
People
(Reporter: ian, Assigned: peterl-retired)
References
()
Details
The attached test case explains everything in detail.
An example of a problem is this:
<span style="text-decoration:underline">
Hello
<span style="font-weight: bold;">
Lovely
</span>
World
</span>
In the above, NGLayout renders the underlining jagged. It is my assertion that
it should be the same throughout, as it is the underlining of the outer span
that is being applied to the inner span, and not the inner span that is
underlining itself. That is, the inner span should have *no* effect on the
rendering of the underlines.
One way of looking at this is through inline boxes.
The above generates two inline boxes, one for the outer span and one for the
inner span. The inner inline box overlaps the outer inline box (in fact, in this
particular case it is contained within it):
+-------+========+-------+
| Hello | Lovely | World |
+-------+========+-------+
The underlining should (as I understand it) be applied *to the outer inline box*
only. That is why, for example, the colour is the same throughout the
underlining.
Hence, if you made the middle span invisible (using the visibility property),
the underlining would remain.
Peter -- this appears to be a legit complaint as shown in the testcase.
Assignee | ||
Updated•25 years ago
|
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → INVALID
Assignee | ||
Comment 2•25 years ago
|
||
Sorry, but no.
The style and color of the text decoration are controlled by the style where the
decoration was applied. The line wieght and position must be determined by the
font where it is drawn. Otherwise decorations can too easily be rendered in
nonsensical places.
Updated•25 years ago
|
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•