Closed Bug 601233 Opened 14 years ago Closed 14 years ago

Setting canvas context2d.font property to an invalid font style makes fillText() inherit font settings from CSS

Categories

(Core :: Graphics: Canvas2D, defect)

1.9.2 Branch
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 508452

People

(Reporter: Parasyte, Unassigned)

References

()

Details

(Keywords: testcase)

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (X11; Linux x86_64; rv:2.0b7pre) Gecko/20101001 Firefox-4.0/4.0b7pre
Build Identifier: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.11pre) Gecko/20100928 Ubuntu/10.04 (lucid) Firefox/3.6.11pre

See URL (I'll also attach it here as a test case); I set the context 2D "font" property to a blank string (e.g. an invalid font style) on one canvas, and fillText() uses the font style inherited from CSS.  The second canvas is rendered with the default font "10px Serif", because the font property is not touched.

I'm only seeing this behavior on Firefox 3.6 branch (Mozilla 1.9.2).  On Firefox 4.0 beta7-pre, I get the expected behavior: Both canvases are rendered exactly the same with the default font.

Reproducible: Always
Version: unspecified → 1.9.2 Branch
Keywords: testcase
> I'm only seeing this behavior on Firefox 3.6 branch (Mozilla 1.9.2).

Right, because we fixed this since 1.9.2...
Status: UNCONFIRMED → RESOLVED
Closed: 14 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: