<?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>213394</bug_id>
          
          <creation_ts>2020-06-19 11:32:43 -0700</creation_ts>
          <short_desc>When in dark mode, switching to a light theme on the page results in invisible (light) scrollbars</short_desc>
          <delta_ts>2021-06-17 05:25: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>Scrolling</component>
          <version>Safari Technology Preview</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>macOS 10.15</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc>https://twitter.com/anthony_ricaud/status/1273751909573234689?s=20</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Sean Patterson">sean_patterson</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>aestes</cc>
    
    <cc>rik</cc>
    
    <cc>sean_patterson</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1664432</commentid>
    <comment_count>0</comment_count>
    <who name="Sean Patterson">sean_patterson</who>
    <bug_when>2020-06-19 11:32:43 -0700</bug_when>
    <thetext>See  https://twitter.com/anthony_ricaud/status/1273751909573234689?s=20

It was reported on Release 108 (Safari 13.2, WebKit 15610.1.16.3) macOS 10.15.5

It appears the scrollbars aren&apos;t updating in while in dark mode. I have yet to confirm.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1664437</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2020-06-19 11:42:22 -0700</bug_when>
    <thetext>&lt;rdar://problem/64538999&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1664469</commentid>
    <comment_count>2</comment_count>
      <attachid>402309</attachid>
    <who name="Anthony Ricaud">rik</who>
    <bug_when>2020-06-19 12:59:33 -0700</bug_when>
    <thetext>Created attachment 402309
Reduced Testcase

With this reduced testcase, it seems the scrollbar color does not adapt to the background color in Dark mode with `color-scheme: light dark`.

If you remove `color-scheme: light dark`, the scrollbar always adapts to the background color.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1664489</commentid>
    <comment_count>3</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2020-06-19 13:36:52 -0700</bug_when>
    <thetext>When the page is in light mode, and the OS is dark mode, FrameView::recalculateScrollbarOverlayStyle() computes an overlay scrollbar style of ScrollbarOverlayStyleDefault, which I think means &quot;use the OS default&quot; which gives the wrong color.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>402309</attachid>
            <date>2020-06-19 12:59:33 -0700</date>
            <delta_ts>2020-06-19 13:28:51 -0700</delta_ts>
            <desc>Reduced Testcase</desc>
            <filename>file_213394.txt</filename>
            <type>text/html</type>
            <size>976</size>
            <attacher name="Anthony Ricaud">rik</attacher>
            
              <data encoding="base64">PHN0eWxlPg0KaHRtbCB7DQoJY29sb3Itc2NoZW1lOiBsaWdodCBkYXJrOw0KCWhlaWdodDogMjAw
dmg7DQoJZm9udC1mYW1pbHk6IHN5c3RlbS11aTsNCgljb2xvcjogYmxhY2s7DQoJYmFja2dyb3Vu
ZC1jb2xvcjogd2hpdGU7DQoNCn0NCmRpdiB7DQoJcG9zaXRpb246Zml4ZWQ7DQp9DQpidXR0b24g
ew0KCWJvcmRlcjogMXB4IHNv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