Closed Bug 508452 Opened 16 years ago Closed 15 years ago

update to current spec for canvas ctx.font getter and setter

Categories

(Core :: Graphics: Canvas2D, defect, P2)

defect

Tracking

()

RESOLVED FIXED
mozilla2.0b3

People

(Reporter: dbaron, Assigned: dbaron)

References

Details

Attachments

(2 files, 2 obsolete files)

Hixie recently made some changes to the spec for the ctx.font getter and setter; I have a work in progress patch to implement them at http://hg.mozilla.org/users/dbaron_mozilla.com/patches/file/tip/ctx-font-updates but I still need to write tests (and make sure the patch passes them).
I realize my current patch doesn't work for system fonts, though.
Is there a reference to a spec?
I also wonder if I should be editing our canvas tests directly or if there's a source form for them that's not in our tree that I should be editing instead.
http://philip.html5.org/tests/canvas/suite/tests/ may be the source of the tests; I need to investigate further to see if there's something there that puts them in the form we have.
Parsing the 'font' shorthand is sufficient.
Attachment #452495 - Flags: review?(bzbarsky)
... though, honestly, I'm a little skeptical, because each time I think about posting this patch, it turns out that the spec has changed again.
Attachment #452496 - Flags: review?(bzbarsky)
Comment on attachment 452496 [details] [diff] [review] patch 3: implement the spec updates Actually, I changed my mind; I can simplify this code a bit now that the requirements changed again.
Attachment #452496 - Flags: review?(bzbarsky)
Simpler version.
Attachment #452495 - Attachment is obsolete: true
Attachment #452496 - Attachment is obsolete: true
Attachment #452499 - Flags: review?(bzbarsky)
Comment on attachment 452494 [details] [diff] [review] revert (and merge to tip) incorrect changes from bug 523496 r=bzbarsky
Attachment #452494 - Flags: review?(bzbarsky) → review+
Comment on attachment 452499 [details] [diff] [review] implement the spec updates r=bzbarsky
Attachment #452499 - Flags: review?(bzbarsky) → review+
Status: NEW → RESOLVED
Closed: 15 years ago
Priority: -- → P2
Resolution: --- → FIXED
Target Milestone: --- → mozilla2.0b3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: