Closed Bug 315732 Opened 20 years ago Closed 20 years ago

Small-caps causes bold uppercase letters

Categories

(Core Graveyard :: GFX: Win32, defect)

x86
Windows XP
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: mozilla, Unassigned)

References

()

Details

Attachments

(2 files)

20051107 trunk The following text displays with an initial capital that is bold while the rest of the text is normal: <h1 style="font-variant:small-caps">Heading</h1> Small-caps should not cause a capitalized letter to appear bold. From the CSS 1 specification (5.2.4), and the CSS 2.1 specification (15.5): "In a small-caps font the lower case letters look similar to the uppercase ones, but in a smaller size and with slightly different proportions."
Assignee: dbaron → win32
Component: Style System (CSS) → GFX: Win32
By definition, all H1 text is bold. Are you sure that this just isn't due to you using a different font that makes it seem more apparent?
URL: data:text/html,<h1 style="font-varian...
And for what it's worth, I see no obvious difference between the font-weight of the letters in your example, using today's trunk build on Windows and the testcase in the URL field.
All the letters should be bold. It's just that the small-caps ones are a smaller size and so you don't notice that they are bold. (This isn't a problem if you have a font installed that actually has a small-caps variant.)
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → INVALID
That is not what is happening. Look at the test case.
Status: RESOLVED → REOPENED
Resolution: INVALID → ---
Attached file Small-caps demo
If it is only because everything is bold, then Gecko is still breaking the specs anyway. They state that the small-caps and capital letter should appear the same except for proportion.
Attached file Small-caps on <p> tag
Still happens with a <p> tag also.
That's due to the characteristics of the font, it's not a Mozilla rendering issue. Try it out in Word or any other app if you don't believe me.
URL: data:text/html,<h1 style="font-varian...data:text/html,<p style="font-family:...
Status: REOPENED → RESOLVED
Closed: 20 years ago20 years ago
Resolution: --- → INVALID
Also, the spec doesn't say "that the small-caps and capital letter should appear the same except for proportion", it says "the lower case letters look similar to the uppercase ones, but in a smaller size and with slightly different proportions".
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: