<?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>267887</bug_id>
          
          <creation_ts>2024-01-22 15:56:58 -0800</creation_ts>
          <short_desc>WebKit is missing UA stylesheet rule to apply &apos;unicode-bidi: isolate&apos; to div elements</short_desc>
          <delta_ts>2024-01-22 16:47:15 -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>Safari 17</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>65617</dup_id>
          <see_also>https://bugs.chromium.org/p/chromium/issues/detail?id=1520671</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=65617</see_also>
          <bug_file_loc>https://bugzilla.mozilla.org/attachment.cgi?id=9375895</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>BrowserCompat</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Daniel Holbert">dholbert</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>darin</cc>
    
    <cc>heycam</cc>
    
    <cc>ntim</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2006705</commentid>
    <comment_count>0</comment_count>
    <who name="Daniel Holbert">dholbert</who>
    <bug_when>2024-01-22 15:56:58 -0800</bug_when>
    <thetext>STR:
1. Load https://bugzilla.mozilla.org/attachment.cgi?id=9375895

EXPECTED RESULTS:
The bold part of the testcase should say:
&apos;isolate&apos; (as expected)

ACTUAL RESULTS:
The bold part of the testcase says:
&apos;normal&apos; UNEXPECTED

This testcase is just highlighting that WebKit seems to be lacking one of the UA stylesheet rules that the html spec requires here:
https://html.spec.whatwg.org/multipage/rendering.html#bidi-rendering

Quoting the rule (note &apos;div&apos; is the 4th element in the selector list):
```
address, blockquote, center, div, figure, figcaption, footer, form, header, hr,
legend, listing, main, p, plaintext, pre, summary, xmp, article, aside, h1, h2,
h3, h4, h5, h6, hgroup, nav, section, search, table, caption, colgroup, col,
thead, tbody, tfoot, tr, td, th, dir, dd, dl, dt, menu, ol, ul, li, bdi, output,
slot, [dir=ltr i], [dir=rtl i], [dir=auto i] {
  unicode-bidi: isolate; 
}
```

Firefox gives the expected result.

(Chromium also gives ACTUAL RESULTS here; I filed https://bugs.chromium.org/p/chromium/issues/detail?id=1520671 on them.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2006708</commentid>
    <comment_count>1</comment_count>
    <who name="Daniel Holbert">dholbert</who>
    <bug_when>2024-01-22 15:59:57 -0800</bug_when>
    <thetext>I tested Safari Version 17.0 (19616.1.27.211.1) on macOS Sonoma, FWIW.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2006711</commentid>
    <comment_count>2</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2024-01-22 16:05:47 -0800</bug_when>
    <thetext>I think @noam tried to do it in another bug 65617 by importing the UA Stylesheet rule and then Darin had feedback to do it where we explicitly set &apos;display: block&apos; and other remaining in block.

Darin&apos;s feedback - https://bugs.webkit.org/show_bug.cgi?id=65617#c18

I had this rule in my local build as well to look into test failures and others bit and noticed that it would take some time to fix them, so didn&apos;t did the PR but I think we should do this change.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2006714</commentid>
    <comment_count>3</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2024-01-22 16:12:26 -0800</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 65617 ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2006731</commentid>
    <comment_count>4</comment_count>
    <who name="Daniel Holbert">dholbert</who>
    <bug_when>2024-01-22 16:47:15 -0800</bug_when>
    <thetext>Thanks! Glad this is a known/agreed-upon issue.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>