This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 18522 - 2d.text.font.parse.size.percentage.default.html not evaluating the correct canvas context
Summary: 2d.text.font.parse.size.percentage.default.html not evaluating the correct ca...
Status: RESOLVED FIXED
Alias: None
Product: HTML WG
Classification: Unclassified
Component: testsuite (show other bugs)
Version: unspecified
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: Thiago Marcos P. Santos
QA Contact: HTML WG Bugzilla archive list
URL: http://w3c-test.org/html/tests/approv...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-10 13:36 UTC by Thiago Marcos P. Santos
Modified: 2012-08-13 11:00 UTC (History)
3 users (show)

See Also:


Attachments
Fix for a version of the same test on WebKit. (1.12 KB, patch)
2012-08-10 13:36 UTC, Thiago Marcos P. Santos
Details

Description Thiago Marcos P. Santos 2012-08-10 13:36:43 UTC
Created attachment 1172 [details]
Fix for a version of the same test on WebKit.

http://w3c-test.org/html/tests/approved/canvas/2d.text.font.parse.size.percentage.default.html

The test was suppose to verify if the percentage value is correctly applied to a canvas not attached to the DOM. It was creating a canvas element (ctx2) but is verifying the properties on another one (ctx).

If the fix is sane, I can also update the test on the https://dvcs.w3.org/hg/html.
Comment 1 Ms2ger 2012-08-12 20:38:44 UTC
Updated the submitted version:

https://dvcs.w3.org/hg/html/rev/a41c2a66140e

As for your patch:

> _assertSame(ctx2.font, '100px serif', "ctx.font", "'100px serif'");

please use "ctx2.font" in the description.

I approve the change with that done.
Comment 2 Thiago Marcos P. Santos 2012-08-13 11:00:18 UTC
Fixed at https://dvcs.w3.org/hg/html/rev/9e7740ce208d