Bug 43187 - [Qt] -webkit-text-fill-color / text-shadow problems
Summary: [Qt] -webkit-text-fill-color / text-shadow problems
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords: Qt, QtTriaged
Depends on:
Blocks:
 
Reported: 2010-07-29 05:28 PDT by Jonathan Corwin
Modified: 2011-03-19 05:52 PDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Corwin 2010-07-29 05:28:01 PDT
I'm not sure if I should be reporting this here, or in a PyQt bugtracker, or somewhere else. So apologies if I've picked the wrong one to try first.

I'm using PyQt 4.7.4 and working with a QWebView. I'm having a problem displaying the second example on this page:
http://webkit.org/blog/85/introducing-text-stroke/

Although I'm specifying a -webkit-text-fill-color and a text-shadow, neither are appearing. All I'm seeing is the webkit-text-stroke part of the rendering (i.e. thick red letters) with no shadow. I've tried replacing the transparent with yellow, just in case this was the cause, but with no joy.

Here is the python code

import sys
from PyQt4 import QtGui, QtWebKit

app = QtGui.QApplication(sys.argv)
main = QtGui.QMainWindow()
web = QtWebKit.QWebView(main)
main.setCentralWidget(web)
web.setHtml("<html><body><div style='font-size:64px; " \
    "text-shadow: 5px 5px 5px black; " \
    "-webkit-text-fill-color: yellow; " \
    "-webkit-text-stroke:3px red'>" \
    "Test</div></body></html>")
main.show()
sys.exit(app.exec_())
Comment 1 Jonathan Corwin 2010-07-29 13:07:51 PDT
Note I get the same problem with both pyqt4 and pyside on Linux too.
Comment 2 Andreas Kling 2010-08-22 21:57:02 PDT
This is slightly better on trunk. No shadows are drawn though, CC'ing Ariya who has been working on that lately.

Also, due to bug 44403 the stroke and the fill are not aligned properly.
Comment 3 Ariya Hidayat 2010-08-22 22:21:39 PDT
Please follow https://bugs.webkit.org/show_bug.cgi?id=19728 for the shadow bug.
Comment 4 Jonathan Corwin 2010-09-10 07:20:58 PDT
I notice that the alignment problem has been cherry picked for 2.1. 
The shadow bug fix although committed, hasn't been cherry picked though, so will I have to wait for 2.2 for this? 

I'm somewhat unfamiliar with the QtWebkit versioning/release schedule and struggled to find any information about it.
Comment 5 Andreas Kling 2011-03-19 05:52:39 PDT
Closing as this is fixed in the next Qt release (QtWebKit 2.2 / Qt 4.8)