<?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>240341</bug_id>
          
          <creation_ts>2022-05-12 06:23:22 -0700</creation_ts>
          <short_desc>Turn legacy properties that share a computed style into aliases or shorthands</short_desc>
          <delta_ts>2024-10-22 14:18:44 -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>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>104805</dependson>
    
    <dependson>166782</dependson>
    
    <dependson>197656</dependson>
    
    <dependson>239808</dependson>
    
    <dependson>243562</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Oriol Brufau">obrufau</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ntim</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1868373</commentid>
    <comment_count>0</comment_count>
    <who name="Oriol Brufau">obrufau</who>
    <bug_when>2022-05-12 06:23:22 -0700</bug_when>
    <thetext>Currently, there are 8 pairs of properties that share a computed style:

 * background-clip, -webkit-background-clip
 * background-origin, -webkit-background-origin
 * background-size, -webkit-background-size
 * box-shadow, -webkit-box-shadow
 * mask-clip, -webkit-mask-clip
 * mask-composite, -webkit-mask-composite
 * mask-mode, -webkit-mask-source-type
 * text-combine-upright, -webkit-text-combine

This is a non-standard hack. CSS Cascade defines 2 standard ways: https://www.w3.org/TR/css-cascade-5/#aliasing
 * legacy name aliases, for properties with the same exact syntax
 * legacy shorthands, for properties with different syntax

So the -webkit- properties above should be turned into aliases or shorthands.

The current hack is more likely to break things, e.g. revert-layer was broken before bug 238125, and CSSOM is still broken (bug 238874).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1868423</commentid>
    <comment_count>1</comment_count>
    <who name="Tim Nguyen (:ntim)">ntim</who>
    <bug_when>2022-05-12 08:34:26 -0700</bug_when>
    <thetext>Bug 104805 is an example of legacy shorthand.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1870354</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-05-19 06:24:13 -0700</bug_when>
    <thetext>&lt;rdar://problem/93572921&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2069870</commentid>
    <comment_count>3</comment_count>
    <who name="Oriol Brufau">obrufau</who>
    <bug_when>2024-10-22 14:18:44 -0700</bug_when>
    <thetext>This has been done, see bug 277623 comment 0

&gt; The &quot;related-property&quot; mechanism has no clients left</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>