<?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>267951</bug_id>
          
          <creation_ts>2024-01-23 14:10:04 -0800</creation_ts>
          <short_desc>implement recent HTML spec changes to directionality and language in shadow DOM</short_desc>
          <delta_ts>2025-08-07 00:16:39 -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>DOM</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.webkit.org/show_bug.cgi?id=251953</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=267962</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>BrowserCompat, InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="L. David Baron">dbaron</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>annevk</cc>
    
    <cc>fantasai.bugs</cc>
    
    <cc>karlcow</cc>
    
    <cc>mike</cc>
    
    <cc>rniwa</cc>
    
    <cc>sabouhallawa</cc>
    
    <cc>vitor.roriz</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2006997</commentid>
    <comment_count>0</comment_count>
    <who name="L. David Baron">dbaron</who>
    <bug_when>2024-01-23 14:10:04 -0800</bug_when>
    <thetext>There were recent changes to the HTML spec to address https://github.com/whatwg/html/issues/3699 on the interaction of HTML directionality (and language) with shadow DOM.

The biggest changes were in:
https://github.com/whatwg/html/pull/9796

But there were also related changes in:
https://github.com/whatwg/html/pull/9554
https://github.com/whatwg/html/pull/9868
https://github.com/whatwg/html/pull/9880
https://github.com/whatwg/html/pull/9882
https://github.com/whatwg/html/pull/10005

There are a substantial number of related web-platform-tests, mostly in
https://wpt.fyi/results/html/dom/elements/global-attribute</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2007053</commentid>
    <comment_count>1</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2024-01-23 16:05:15 -0800</bug_when>
    <thetext>I am importing whole &apos;global-attributes&apos; in bug 267962.

Later, I am doing this PR to sync UA stylesheet rules for slot and others, so it might progress some stuff.

PR - https://github.com/WebKit/WebKit/pull/23084</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2009088</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2024-01-30 14:10:23 -0800</bug_when>
    <thetext>&lt;rdar://problem/121958890&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2047436</commentid>
    <comment_count>3</comment_count>
    <who name="Tim Nguyen (:ntim)">ntim</who>
    <bug_when>2024-07-21 19:24:15 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/31047</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2051675</commentid>
    <comment_count>4</comment_count>
      <attachid>472101</attachid>
    <who name="Said Abou-Hallawa">sabouhallawa</who>
    <bug_when>2024-08-09 09:43:10 -0700</bug_when>
    <thetext>Created attachment 472101
Test case (should not fire any alert)

Attaching a test case. It should not fire any alert.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2053962</commentid>
    <comment_count>5</comment_count>
    <who name="L. David Baron">dbaron</who>
    <bug_when>2024-08-19 18:23:41 -0700</bug_when>
    <thetext>There are some additional changes currently happening in https://github.com/whatwg/html/pull/10561
(in response to feedback and tests from the Gecko implementor).</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>472101</attachid>
            <date>2024-08-09 09:43:10 -0700</date>
            <delta_ts>2024-08-09 09:43:10 -0700</delta_ts>
            <desc>Test case (should not fire any alert)</desc>
            <filename>test-slot-dir-auto.html</filename>
            <type>text/html</type>
            <size>1977</size>
            <attacher name="Said Abou-Hallawa">sabouhallawa</attacher>
            
              <data encoding="base64">PGJvZHk+CiAgICA8c2NyaXB0PgogICAgICAgIGNvbnN0IGFzc2VydCA9IGZ1bmN0aW9uKGNvbmRp
dGlvbiwgbWVzc2FnZSkgewogICAgICAgICAgICBpZiAoIWNvbmRpdGlvbikKICAgICAgICAgICAg
ICAgIGFsZXJ0KCdBc3NlcnQgZmFpbGVkOiAnICsgKG1lc3NhZ2UgfHwgJycpKTsKICAgICAgICB9
OwoKICAgICAgICBmdW5jdGlvbiBzZXR1cF90cmVlKGxpZ2h0X3RyZWUsIHNoYWRvd190cmVlKSB7
CiAgICAgICAgICAgIGxldCBib2R5ID0gZG9jdW1lbnQuYm9keTsKICAgICAgICAgICAgbGV0IG9s
ZF9sZW5ndGggPSBib2R5LmNoaWxkTm9kZXMubGVuZ3RoOwogICAgICAgICAgICBib2R5Lmluc2Vy
dEFkamFjZW50SFRNTCgiYmVmb3JlZW5kIiwgbGlnaHRfdHJlZS50cmltKCkpOwogICAgICAgICAg
ICBpZiAoYm9keS5jaGlsZE5vZGVzLmxlbmd0aCAhPSBvbGRfbGVuZ3RoICsgMSkgewogICAgICAg
ICAgICAgICAgdGhyb3cgInVuZXhwZWN0ZWQgbWFya3VwIjsKICAgICAgICAgICAgfQogICAgICAg
ICAgICBsZXQgcmVzdWx0ID0gYm9keS5sYXN0Q2hpbGQ7CiAgICAgICAgICAgIGlmIChzaGFkb3df
dHJlZSkgewogICAgICAgICAgICAgICAgbGV0IHNoYWRvdyA9IHJlc3VsdC5xdWVyeVNlbGVjdG9y
KCIjcm9vdCIpLmF0dGFjaFNoYWRvdyh7bW9kZTogIm9wZW4ifSk7CiAgICAgICAgICAgICAgICBz
aGFkb3cuaW5uZXJIVE1MID0gc2hhZG93X3RyZWUudHJpbSgpOwogICAgICAgICAgICAgICAgcmV0
dXJuIFtyZXN1bHQsIHNoYWRvd107CiAgICAgICAgICAgIH0KICAgICAgICAgICAgcmV0dXJuIHJl
c3VsdDsKICAgICAgICB9CgogICAgICAgIGxldCBbdHJlZSwgc2hhZG93XSA9IHNldHVwX3RyZWUo
CiAgICAgICAgICAgIGA8ZGl2PgogICAgICAgICAgICAgICAgPGRpdiBpZD0icm9vdCI+CiAgICAg
ICAgICAgICAgICAgICAgPHNwYW4gaWQ9ImwiPkE8L3NwYW4+CiAgICAgICAgICAgICAgICAgICAg
PHNwYW4gaWQ9InIiPlx1MDVEMDwvc3Bhbj4KICAgICAgICAgICAgICAgIDwvZGl2PgogICAgICAg
ICAgICA8L2Rpdj5gLAogICAgICAgICAgICBgPHNsb3QgaWQ9Im9uZSIgbmFtZT0ib25lIiBkaXI9
ImF1dG8iPlx1MDVEMDwvc2xvdD4KICAgICAgICAgICAgPHNsb3QgaWQ9InR3byIgZGlyPSJhdXRv
Ij48L3Nsb3Q+YAogICAgICAgICk7CgogICAgICAgIGxldCBvbmUgPSBzaGFkb3cuZ2V0RWxlbWVu
dEJ5SWQoIm9uZSIpOwogICAgICAgIGxldCB0d28gPSBzaGFkb3cuZ2V0RWxlbWVudEJ5SWQoInR3
byIpOwogICAgICAgIGxldCBsID0gdHJlZS5xdWVyeVNlbGVjdG9yKCIjbCIpOwogICAgICAgIGxl
dCByID0gdHJlZS5xdWVyeVNlbGVjdG9yKCIjciIpOwogICAgICAgIGFzc2VydChvbmUubWF0Y2hl
cygiOmRpcihydGwpIiksICIjb25lIHdoaWxlIGVtcHR5Iik7CiAgICAgICAgYXNzZXJ0KHR3by5t
YXRjaGVzKCI6ZGlyKGx0cikiKSwgIiN0d28gd2l0aCBib3RoIHNwYW5zIik7CiAgICAgICAgbC5z
bG90ID0gIm9uZSI7CiAgICAgICAgYXNzZXJ0KG9uZS5tYXRjaGVzKCI6ZGlyKGx0cikiKSwgIiNv
bmUgd2l0aCBMVFIgY2hpbGQgc3BhbiIpOwogICAgICAgIGFzc2VydCh0d28ubWF0Y2hlcygiOmRp
cihydGwpIiksICIjdHdvIHdpdGggUlRMIGNoaWxkIHNwYW4iKTsKICAgICAgICByLnNsb3QgPSAi
b25lIjsKICAgICAgICBhc3NlcnQob25lLm1hdGNoZXMoIjpkaXIobHRyKSIpLCAiI29uZSB3aXRo
IGJvdGggY2hpbGQgc3BhbnMiKTsKICAgICAgICBhc3NlcnQodHdvLm1hdGNoZXMoIjpkaXIobHRy
KSIpLCAiI3R3byB3aGlsZSBlbXB0eSIpOwogICAgICAgIGwuc2xvdCA9ICIiOwogICAgICAgIGFz
c2VydCghb25lLm1hdGNoZXMoIjpkaXIobHRyKSIpLCAiI29uZSB3aXRoIFJUTCBjaGlsZCBzcGFu
Iik7CiAgICAgICAgYXNzZXJ0KHR3by5tYXRjaGVzKCI6ZGlyKGx0cikiKSwgIiN0d28gd2l0aCBM
VFIgY2hpbGQgc3BhbiIpOwogICAgPC9zY3JpcHQ+CjwvYm9keT4K
</data>

          </attachment>
      

    </bug>

</bugzilla>