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

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>13829</bug_id>
          
          <creation_ts>2011-08-18 18:08:28 +0000</creation_ts>
          <short_desc>Ensure that hiliteColor is the innermost style applied</short_desc>
          <delta_ts>2011-09-28 21:19:42 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebAppsWG</product>
          <component>HISTORICAL - HTML Editing APIs</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Aryeh Gregor">ayg</reporter>
          <assigned_to name="Aryeh Gregor">ayg</assigned_to>
          <cc>mike</cc>
    
    <cc>public-webapps</cc>
          
          <qa_contact name="HTML Editing APIs spec bugbot">sideshowbarker+html-editing-api</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>55439</commentid>
    <comment_count>0</comment_count>
    <who name="Aryeh Gregor">ayg</who>
    <bug_when>2011-08-18 18:08:28 +0000</bug_when>
    <thetext>See: https://bugs.webkit.org/show_bug.cgi?id=21679

I&apos;m adding the following fontSize tests:

        [&quot;6&quot;, &apos;&lt;span style=background-color:aqua&gt;[foo]&lt;/span&gt;&apos;],
        [&quot;6&quot;, &apos;&lt;span style=background-color:aqua&gt;foo[bar]baz&lt;/span&gt;&apos;],
        [&quot;6&quot;, &apos;[foo&lt;span style=background-color:aqua&gt;bar&lt;/span&gt;baz]&apos;],

And the following hiliteColor tests:

        &apos;&lt;font size=6&gt;[foo]&lt;/font&gt;&apos;,
        &apos;&lt;span style=font-size:xx-large&gt;[foo]&lt;/span&gt;&apos;,
        &apos;&lt;font size=6&gt;foo[bar]baz&lt;/font&gt;&apos;,
        &apos;&lt;span style=font-size:xx-large&gt;foo[bar]baz&lt;/span&gt;&apos;,
        &apos;[foo&lt;font size=6&gt;bar&lt;/font&gt;baz]&apos;,
        &apos;[foo&lt;span style=font-size:xx-large&gt;bar&lt;/span&gt;baz]&apos;,

In many cases, the highlight is visually not high enough in the markup that the spec produces.  We get things like &lt;span style=&quot;background-color: teal&quot;&gt;foo&lt;font size=6&gt;bar&lt;/font&gt;baz&lt;/span&gt;, and the background doesn&apos;t get higher to match the increased height of &quot;bar&quot;.

I think the correct fix is to change the effective value algorithm so that it returns a special value like &quot;mixed&quot; if this case is detected.  That way, any descendants that have this problem will have the algorithm applied to them again.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>55440</commentid>
    <comment_count>1</comment_count>
    <who name="Aryeh Gregor">ayg</who>
    <bug_when>2011-08-18 18:09:58 +0000</bug_when>
    <thetext>Tests added: http://aryeh.name/gitweb.cgi?p=editing;a=commitdiff;h=d7d54085</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>55948</commentid>
    <comment_count>2</comment_count>
    <who name="Aryeh Gregor">ayg</who>
    <bug_when>2011-08-28 16:59:12 +0000</bug_when>
    <thetext>Ryosuke pointed out at the face-to-face that changing the effective value algorithm isn&apos;t enough.  We also need to add extra save/restore checks whenever fontSize changes.  This should still be doable, though.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>55998</commentid>
    <comment_count>3</comment_count>
    <who name="Aryeh Gregor">ayg</who>
    <bug_when>2011-08-29 18:27:19 +0000</bug_when>
    <thetext>He also pointed out that you have to do it on delete too, and perhaps other places.  Should still be doable.  We just need to make sure we&apos;re saving and restoring values as often as necessary.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>57487</commentid>
    <comment_count>4</comment_count>
    <who name="Aryeh Gregor">ayg</who>
    <bug_when>2011-09-28 21:19:42 +0000</bug_when>
    <thetext>This is trickier than I thought.  Just changing the effective command value is bad, because it will affect the value of queryCommandValue().  Something subtler is needed, and perhaps more special.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>