<?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>166782</bug_id>
          
          <creation_ts>2017-01-06 15:48:51 -0800</creation_ts>
          <short_desc>WebKit implements &quot;word-wrap&quot; as a weird sort of alias which shows up in serializations alongside its alias-target</short_desc>
          <delta_ts>2022-05-12 08:37:32 -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>CSS</component>
          <version>Safari 10</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.chromium.org/p/chromium/issues/detail?id=679068</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar, WPTImpact</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>239579</blocked>
    
    <blocked>240341</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Daniel Holbert">dholbert</reporter>
          <assigned_to name="Tim Nguyen (:ntim)">ntim</assigned_to>
          <cc>ntim</cc>
    
    <cc>obrufau</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1264556</commentid>
    <comment_count>0</comment_count>
    <who name="Daniel Holbert">dholbert</who>
    <bug_when>2017-01-06 15:48:51 -0800</bug_when>
    <thetext>STR:
(1) Visit https://jsfiddle.net/5esq3oc8/
(2) Inspect the serialization of the div&apos;s CSS rule for its &quot;style&quot; attribute. (Shown in an alert dialog)

EXPECTED RESULTS:
&quot;word-wrap&quot; should not appear (since it&apos;s an alias for &quot;overflow-wrap&quot;).

ACTUAL RESULTS:
&quot;word-wrap&quot; and &quot;overflow-wrap&quot; *BOTH* appear, despite the fact that the former is an alias for the latter!  In contrast, the other alias included in this testcase (-webkit-align-items) does not show up -- for that one, only the main property appears in the serialization.


NOTES:
* This bug affects Chrome/Blink as well; the Blink instance of this bug report is https://bugs.chromium.org/p/chromium/issues/detail?id=679068
* The spec text here is pretty hand-wavy, and Manish filed https://github.com/w3c/csswg-drafts/issues/866 on that.  Right now it says &quot;UAs must treat word-wrap as an alternate name for the overflow-wrap property, as if it were a shorthand of overflow-wrap.&quot; https://drafts.csswg.org/css-text-3/#propdef-word-wrap
* That spec text seems to be basically describing the concept of an alias (&quot;an alternate name&quot;, &quot;as if it were a shorthand&quot; -- notably *not* saying that it&apos;s *actually* a shorthand).  So, WebKit should be doing its standard legacy aliasing thing here, just like it does for -webkit-align-items. I&apos;m not sure why it has different behavior for this one special property. Probably some weird historical cruft, I&apos;m guessing, which can be cleaned up now? :)


I tested in Safari 10 on sierra and got ACTUAL RESULTS. Chrome 57 dev edition also gives ACTUAL RESULTS.
Firefox Nightly 53 gives EXPECTED RESULTS. Edge 14 gives an entirely different behavior because they don&apos;t yet support &quot;overflow-wrap&quot; (https://wpdev.uservoice.com/forums/257854-microsoft-edge-developer/suggestions/6524680-update-word-wrap-to-overflow-wrap )</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1864836</commentid>
    <comment_count>1</comment_count>
    <who name="Tim Nguyen (:ntim)">ntim</who>
    <bug_when>2022-04-27 10:12:29 -0700</bug_when>
    <thetext>Pull Request: https://github.com/WebKit/WebKit/pull/411</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1864868</commentid>
    <comment_count>2</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2022-04-27 11:56:52 -0700</bug_when>
    <thetext>Committed r293521 (250052@main): &lt;https://commits.webkit.org/250052@main&gt;

Reviewed commits have been landed. Closing PR #411 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1864869</commentid>
    <comment_count>3</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-04-27 11:57:12 -0700</bug_when>
    <thetext>&lt;rdar://problem/92412149&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1864880</commentid>
    <comment_count>4</comment_count>
    <who name="Tim Nguyen (:ntim)">ntim</who>
    <bug_when>2022-04-27 12:12:32 -0700</bug_when>
    <thetext>Reopening to attach new patch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1864881</commentid>
    <comment_count>5</comment_count>
      <attachid>458459</attachid>
    <who name="Tim Nguyen (:ntim)">ntim</who>
    <bug_when>2022-04-27 12:12:35 -0700</bug_when>
    <thetext>Created attachment 458459
Patch for landing</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1864882</commentid>
    <comment_count>6</comment_count>
    <who name="Tim Nguyen (:ntim)">ntim</who>
    <bug_when>2022-04-27 12:13:57 -0700</bug_when>
    <thetext>Committed r293528 (250057@trunk): &lt;https://commits.webkit.org/250057@trunk&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1865166</commentid>
    <comment_count>7</comment_count>
    <who name="Tim Nguyen (:ntim)">ntim</who>
    <bug_when>2022-04-28 09:28:18 -0700</bug_when>
    <thetext>Committed r293574 (250088@trunk): &lt;https://commits.webkit.org/250088@trunk&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>458459</attachid>
            <date>2022-04-27 12:12:35 -0700</date>
            <delta_ts>2022-04-27 12:13:14 -0700</delta_ts>
            <desc>Patch for landing</desc>
            <filename>bug-166782-20220427211234.patch</filename>
            <type>text/plain</type>
            <size>1732</size>
            <attacher name="Tim Nguyen (:ntim)">ntim</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMjkzNTI3CmRpZmYgLS1naXQ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V4dC1h
bGlnbi1hbGwgaGFzIGluaXRpYWwgdmFsdWUgc3RhcnQgYXNzZXJ0X3RydWU6IHRleHQtYWxpZ24t
YWxsIGRvZXNuJ3Qgc2VlbSB0byBiZSBzdXBwb3J0ZWQgaW4gdGhlIGNvbXB1dGVkIHN0eWxlIGV4
cGVjdGVkIHRydWUgZ290IGZhbHNlCg==
</data>
<flag name="commit-queue"
          id="487295"
          type_id="3"
          status="-"
          setter="ntim"
    />
          </attachment>
      

    </bug>

</bugzilla>