<?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>235676</bug_id>
          
          <creation_ts>2022-01-26 15:15:26 -0800</creation_ts>
          <short_desc>Logical size/offset properties should handle the writing mode changing using &apos;initial&apos;</short_desc>
          <delta_ts>2022-02-02 15:16:16 -0800</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>
          
          
          <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>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Matt Woodrow">mattwoodrow</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1834312</commentid>
    <comment_count>0</comment_count>
      <attachid>450075</attachid>
    <who name="Matt Woodrow">mattwoodrow</who>
    <bug_when>2022-01-26 15:15:26 -0800</bug_when>
    <thetext>Created attachment 450075
Testcase

It appears that changing the writing mode using &apos;initial&apos; results in logical properties still using the writing mode of the parent.

I think that&apos;s because we skip resolving the writing-mode if it&apos;s a css-wide value - https://webkit-search.igalia.com/webkit/rev/e21587c29ad4af9fb73c51c60d46a21531ef2a5e/Source/WebCore/style/PropertyCascade.cpp#317</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1836655</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-02-02 15:16:16 -0800</bug_when>
    <thetext>&lt;rdar://problem/88403937&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>450075</attachid>
            <date>2022-01-26 15:15:26 -0800</date>
            <delta_ts>2022-01-26 15:15:26 -0800</delta_ts>
            <desc>Testcase</desc>
            <filename>inline-test.html</filename>
            <type>text/html</type>
            <size>268</size>
            <attacher name="Matt Woodrow">mattwoodrow</attacher>
            
              <data encoding="base64">PCFkb2N0eXBlIEhUTUw+CjxodG1sPgo8Ym9keT4KPGRpdiBzdHlsZT0id3JpdGluZy1tb2RlOnZl
cnRpY2FsLWxyOyB3aWR0aDoyMDBweDsgaGVpZ2h0OjIwMHB4OyBib3JkZXI6MXB4IGJsYWNrIHNv
bGlkIj4KICAgIDxkaXYgc3R5bGU9IndyaXRpbmctbW9kZTpob3Jpem9udGFsLXRiO21hcmdpbi1p
bmxpbmUtc3RhcnQ6MjBweDtiYWNrZ3JvdW5kLWNvbG9yOmJsdWU7aGVpZ2h0OjIwMHB4OyB3aWR0
aDoxODBweDsiPjwvZGl2Pgo8L2Rpdj4KPC9ib2R5Pgo8L2h0bWw+Cg==
</data>

          </attachment>
      

    </bug>

</bugzilla>