Bug 20720 - element b or strong, font-weight:bolder double processed with fonts with multiple weights
Summary: element b or strong, font-weight:bolder double processed with fonts with mult...
Status: RESOLVED CONFIGURATION CHANGED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Text (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac OS X 10.5
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-08 05:53 PDT by Philippe Wittenbergh
Modified: 2023-12-13 19:21 PST (History)
2 users (show)

See Also:


Attachments
test case (609 bytes, text/html)
2008-09-08 05:56 PDT, Philippe Wittenbergh
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Philippe Wittenbergh 2008-09-08 05:53:49 PDT
STR:
1. in the stylesheet: span, b, strong {font-weight:bolder}; p {font-family:Optima; }
2. put a paragraph with either a <b> or <strong> element

AR: the bold or strong element uses 'Optima ExtraBold'
ER: the bold or strong element uses 'Optima Bold'

It is as if the author stylesheet doesn't override the UA stylesheet, but/and processes the font-weight:bolder twice. According to the WebKit inspector, the font-weight computes to '800' instead of '700'.

Requirement: fonts that have more than one bold face, such as Optima on OS X.
Safari 3.1 processes this 'correctly' because it didn't handle multiple font-weights (added in bug 6484).

Gecko 1.9.0+ handles this correctly
Comment 1 Philippe Wittenbergh 2008-09-08 05:56:12 PDT
Created attachment 23250 [details]
test case

The 2 lines of text should be identical.
Comment 2 Ahmad Saleem 2023-12-13 19:21:08 PST
I am unable to reproduce this bug in Safari 17.2, Chrome Canary 122 and Firefox Nightly 122. All of them are matching with each other while using 'macOS 14.2'.

Marking this as 'RESOLVED CONFIGURATION CHANGED'.