<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>43187</bug_id>
          
          <creation_ts>2010-07-29 05:28:01 -0700</creation_ts>
          <short_desc>[Qt] -webkit-text-fill-color / text-shadow problems</short_desc>
          <delta_ts>2011-03-19 05:52:39 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Layout and Rendering</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>Qt, QtTriaged</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jonathan Corwin">j</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ariya.hidayat</cc>
    
    <cc>j</cc>
    
    <cc>kling</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>257640</commentid>
    <comment_count>0</comment_count>
    <who name="Jonathan Corwin">j</who>
    <bug_when>2010-07-29 05:28:01 -0700</bug_when>
    <thetext>I&apos;m not sure if I should be reporting this here, or in a PyQt bugtracker, or somewhere else. So apologies if I&apos;ve picked the wrong one to try first.

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

Although I&apos;m specifying a -webkit-text-fill-color and a text-shadow, neither are appearing. All I&apos;m seeing is the webkit-text-stroke part of the rendering (i.e. thick red letters) with no shadow. I&apos;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(&quot;&lt;html&gt;&lt;body&gt;&lt;div style=&apos;font-size:64px; &quot; \
    &quot;text-shadow: 5px 5px 5px black; &quot; \
    &quot;-webkit-text-fill-color: yellow; &quot; \
    &quot;-webkit-text-stroke:3px red&apos;&gt;&quot; \
    &quot;Test&lt;/div&gt;&lt;/body&gt;&lt;/html&gt;&quot;)
main.show()
sys.exit(app.exec_())</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>257829</commentid>
    <comment_count>1</comment_count>
    <who name="Jonathan Corwin">j</who>
    <bug_when>2010-07-29 13:07:51 -0700</bug_when>
    <thetext>Note I get the same problem with both pyqt4 and pyside on Linux too.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>267754</commentid>
    <comment_count>2</comment_count>
    <who name="Andreas Kling">kling</who>
    <bug_when>2010-08-22 21:57:02 -0700</bug_when>
    <thetext>This is slightly better on trunk. No shadows are drawn though, CC&apos;ing Ariya who has been working on that lately.

Also, due to bug 44403 the stroke and the fill are not aligned properly.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>267758</commentid>
    <comment_count>3</comment_count>
    <who name="Ariya Hidayat">ariya.hidayat</who>
    <bug_when>2010-08-22 22:21:39 -0700</bug_when>
    <thetext>Please follow https://bugs.webkit.org/show_bug.cgi?id=19728 for the shadow bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>277170</commentid>
    <comment_count>4</comment_count>
    <who name="Jonathan Corwin">j</who>
    <bug_when>2010-09-10 07:20:58 -0700</bug_when>
    <thetext>I notice that the alignment problem has been cherry picked for 2.1. 
The shadow bug fix although committed, hasn&apos;t been cherry picked though, so will I have to wait for 2.2 for this? 

I&apos;m somewhat unfamiliar with the QtWebkit versioning/release schedule and struggled to find any information about it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>370123</commentid>
    <comment_count>5</comment_count>
    <who name="Andreas Kling">kling</who>
    <bug_when>2011-03-19 05:52:39 -0700</bug_when>
    <thetext>Closing as this is fixed in the next Qt release (QtWebKit 2.2 / Qt 4.8)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>