Closed Bug 388548 Opened 17 years ago Closed 17 years ago

CheckFontCallback needs to consider font-size:larger/smaller

Categories

(Core :: CSS Parsing and Computation, defect)

defect
Not set
major

Tracking

()

RESOLVED FIXED
mozilla1.9alpha8

People

(Reporter: dbaron, Assigned: dbaron)

References

Details

(Keywords: css1)

Attachments

(3 files)

Attached file testcase
CheckFontCallback needs to consider the 'larger' and 'smaller' values of 'font-size', which mean that the value on the element is derived from its parent.  (We set aInherited correctly in nsRuleNode::SetFont, but we need to get it right here as well so we know to get the real parentFont rather than the bogus one.)

Bug 383979 will make this show up in more cases.
This is probably a more likely testcase to show up in the real world.  Thus this blocks bug 383979.
Attached patch patchSplinter Review
Attachment #272748 - Flags: superreview?(bzbarsky)
Attachment #272748 - Flags: review?(bzbarsky)
Comment on attachment 272748 [details] [diff] [review]
patch

r+sr=bzbarsky.

I really wish we didn't duplicate logic like this between the check callbacks and the actual computation.  :(
Attachment #272748 - Flags: superreview?(bzbarsky)
Attachment #272748 - Flags: superreview+
Attachment #272748 - Flags: review?(bzbarsky)
Attachment #272748 - Flags: review+
Fix checked in to trunk.
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: