Open
Bug 1247167
Opened 10 years ago
Updated 4 years ago
[CSS Font Loading] CSS-connection does not obey style changes
Categories
(Core :: DOM: CSS Object Model, defect)
Core
DOM: CSS Object Model
Tracking
()
NEW
People
(Reporter: mmaxfield, Unassigned)
Details
(Whiteboard: dom-triaged)
Attachments
(1 file)
|
1.31 KB,
text/html
|
Details |
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_4) AppleWebKit/601.5.15 (KHTML, like Gecko) Version/9.1 Safari/601.5.15
Steps to reproduce:
Open the attached HTML file in 47.0a1 (2016-02-09). It appears that if you modify a CSS-connected FontFace object, the change you made does not reflect in the used fonts on the page, nor does it reflect in the CSSOM nor in a newly received FontFace object.
Actual results:
The word "Hello" is written in the web font
Starting up...
CSSOM: "TestFont"
Font Loading: "TestFont"
Modifying style via Font Loading...
CSSOM: "TestFont"
Font Loading: "TestFont"
All finished.
Expected results:
The word "Hello" to be written in 50px Courier
Starting up...
CSSOM: TestFont
Font Loading: TestFont
Modifying style via Font Loading...
CSSOM: TestFont2
Font Loading: TestFont2
All finished.
| Reporter | ||
Comment 1•10 years ago
|
||
Please note that the attached HTML file requires a "test.otf" font next to it (on the disk)
Comment 2•10 years ago
|
||
Thanks for the test Myles.
Looking at the code now I am reminded that we don't support modifying the descriptors on a CSS-connected FontFace yet:
https://dxr.mozilla.org/mozilla-central/source/layout/style/FontFace.cpp#518
And I think we have a longstanding issue of not responding to assignments of @font-face descriptors through the CSS rule object (although I can't find the bug for that right now).
Status: UNCONFIRMED → NEW
Component: Untriaged → DOM: CSS Object Model
Ever confirmed: true
Product: Firefox → Core
| Reporter | ||
Comment 3•10 years ago
|
||
(In reply to Cameron McCormack (:heycam) from comment #2)
> Thanks for the test Myles.
>
> Looking at the code now I am reminded that we don't support modifying the
> descriptors on a CSS-connected FontFace yet:
>
>
> https://dxr.mozilla.org/mozilla-central/source/layout/style/FontFace.cpp#518
>
> And I think we have a longstanding issue of not responding to assignments of
> @font-face descriptors through the CSS rule object (although I can't find
> the bug for that right now).
Yes; when I run setProperty() on the CSSFontFaceRule's CSSStyleDeclaration, it throws NS_ERROR_NOT_IMPLEMENTED.
Updated•10 years ago
|
Whiteboard: dom-triaged
Updated•4 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•