<?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>185977</bug_id>
          
          <creation_ts>2018-05-25 01:04:38 -0700</creation_ts>
          <short_desc>[css-logical] Implement CSS Logical Properties and Values</short_desc>
          <delta_ts>2022-06-27 02:26:16 -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>NEW</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.chromium.org/p/chromium/issues/detail?id=538475</see_also>
          <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>218089</dependson>
    
    <dependson>218094</dependson>
    
    <dependson>188386</dependson>
    
    <dependson>188512</dependson>
    
    <dependson>188697</dependson>
    
    <dependson>189441</dependson>
    
    <dependson>216178</dependson>
    
    <dependson>218087</dependson>
    
    <dependson>218088</dependson>
    
    <dependson>218090</dependson>
    
    <dependson>218091</dependson>
    
    <dependson>218092</dependson>
    
    <dependson>218093</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Manuel Rego Casasnovas">rego</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>709922234</cc>
    
    <cc>dev</cc>
    
    <cc>jonlee</cc>
    
    <cc>koivisto</cc>
    
    <cc>obrufau</cc>
    
    <cc>sam</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>zalan</cc>
    
    <cc>zcorpan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1427214</commentid>
    <comment_count>0</comment_count>
    <who name="Manuel Rego Casasnovas">rego</who>
    <bug_when>2018-05-25 01:04:38 -0700</bug_when>
    <thetext>Spec: https://drafts.csswg.org/css-logical-1/

Firefox has shipped a bunch of them long time ago, and Blink has shipped a few already.
It&apos;d be nice if WebKit could catch up too.
Note that some of these properties are already supported under prefixed names.
Current support:
https://developer.mozilla.org/es/docs/Web/CSS/CSS_Logical_Properties#Browser_compatibility

The Chromium bug has an interesting analysis of the work required for this:
https://bugs.chromium.org/p/chromium/issues/detail?id=538475</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1450333</commentid>
    <comment_count>1</comment_count>
    <who name="Jon Lee">jonlee</who>
    <bug_when>2018-08-15 10:05:27 -0700</bug_when>
    <thetext>rdar://problem/25324117</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1700682</commentid>
    <comment_count>2</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2020-10-22 09:31:51 -0700</bug_when>
    <thetext>Orial, did you work in bug 216178 cover all the logical properties?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1700686</commentid>
    <comment_count>3</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2020-10-22 09:46:50 -0700</bug_when>
    <thetext>We also need to makes sure that Web Inspector knows about all these new properties.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1700691</commentid>
    <comment_count>4</comment_count>
    <who name="Oriol Brufau">obrufau</who>
    <bug_when>2020-10-22 09:55:57 -0700</bug_when>
    <thetext>I didn&apos;t implement the logical corner radius: https://drafts.csswg.org/css-logical/#border-radius-properties

Also note some logical properties are defined outside of css-logical, like `overflow-block` and `overflow-inline` (https://drafts.csswg.org/css-overflow/#logical). I didn&apos;t implement these either.

Some other work that needs to be done:

 - Support animating logical properties (via CSS Animations, CSS Transitions or Web Animations). Bug 188512.
 - Add logical values for &apos;float&apos;, &apos;clear&apos; and &apos;resize&apos;.
 - Replace uses of prefixed properties with standard ones.
 - Resolve logical border colors in :visited using the :link&apos;s writing mode instead of :visited&apos;s one (see Chromium&apos;s fast/css/logical-box-border-color-visited-link-003.html)
 - Fix CSSOM problems like:
    document.documentElement.style.marginLeft = &quot;1px&quot;;
    getComputedStyle(document.documentElement).marginLeft; // &quot;1px&quot;, good
    document.documentElement.style.marginInlineStart = &quot;2px&quot;;
    getComputedStyle(document.documentElement).marginLeft; // &quot;2px&quot;, good
    document.documentElement.style.marginLeft = &quot;3px&quot;;
    getComputedStyle(document.documentElement).marginLeft; // &quot;2px&quot;, bad, should be &quot;3px&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1700695</commentid>
    <comment_count>5</comment_count>
    <who name="Oriol Brufau">obrufau</who>
    <bug_when>2020-10-22 10:02:10 -0700</bug_when>
    <thetext>(In reply to Oriol Brufau from comment #4)
&gt;  - Resolve logical border colors in :visited using the :link&apos;s writing mode instead of :visited&apos;s one (see Chromium&apos;s fast/css/logical-box-border-color-visited-link-003.html)

Well that&apos;s what Chromium and Firefox do, but the CSSWG hasn&apos;t resolved what should happen: https://github.com/w3c/csswg-drafts/issues/2844</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>