Summary: | webkit does not adjust a view unit based font size until the page is refreshed (premature optimisation?) | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | nemo <bugs> | ||||
Component: | Layout and Rendering | Assignee: | Nobody <webkit-unassigned> | ||||
Status: | UNCONFIRMED --- | ||||||
Severity: | Normal | CC: | jwalden+bwo, robertc | ||||
Priority: | P2 | ||||||
Version: | 528+ (Nightly build) | ||||||
Hardware: | All | ||||||
OS: | All | ||||||
URL: | http://m8y.org/tmp/testcase272.xhtml | ||||||
Attachments: |
|
Description
nemo
2012-08-23 06:41:43 PDT
Created attachment 160150 [details]
demo of problem
I updated http://m8y.org/tmp/testcase272.xhtml to link to http://m8y.org/tmp/testcase273.xhtml which adds a javascript workaround. Inelegant... Added a delay to the workaround, in the interests of performance. Now of course, the workaround might well screw up web pages. Reloading does do that. If anyone knows of a way to trigger this recalc without reloading, do let me know. I'd love a "nicer" JS workaround. Hm... Doing any change to the content seems to work too. Sweet. Going to try a subtle adjustment of colour for forcing a recalc. Actually, that wasn't enough. Toggling styles was enough in the Chrome dev tool, but didn't seem to have any effect in JS. Sooo, resorted to removing the rule and adding it back in. That worked. Updated http://m8y.org/tmp/testcase273.xhtml accordingly. BTW, recreating the rule doesn't seem to be enough for IE10 either, soo, going to have to try and find some other workaround there. Oh. That is. location.reload() (ugh) *does* work in IE10 but removing the rule doesn't seem to, unless the delay matters. Probably not too interesting to the webkit guys, but maybe interesting to other page creators who run into this bug. https://bugzilla.mozilla.org/show_bug.cgi?id=503720#c46 So, Firefox now has this in nightlies, implemented correctly. Of the two other major browsers, IE10's brokenness is more irritating to fix, but if you guys would fix Webkit, maybe that would put pressure on them? |