<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Html on NewInWeb</title>
    <link>//newinweb.menardi.dev/tags/html/</link>
    <description>Recent content in Html on NewInWeb</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en-us</language>
    <lastBuildDate>Sat, 15 Aug 2020 11:00:00 +0000</lastBuildDate>
    
        <atom:link href="//newinweb.menardi.dev/tags/html/index.xml" rel="self" type="application/rss+xml" />
    
    
    
    <item>
      <title>Setting color-scheme to use default dark mode values</title>
      <link>//newinweb.menardi.dev/2020/08/15/dark-mode-meta/</link>
      <pubDate>Sat, 15 Aug 2020 11:00:00 +0000</pubDate>
      
      <guid>//newinweb.menardi.dev/2020/08/15/dark-mode-meta/</guid>
      <description>&lt;p&gt;I previously wrote about &lt;a href=&#34;2019/04/06/prefers-color-scheme/&#34;&gt;using prefers-color-scheme&lt;/a&gt; to make a dark mode version of your website. Recently, Chrome and Safari have added support for &lt;code&gt;color-scheme&lt;/code&gt;, which allows you to use some browser defaults for dark mode. Where using &lt;code&gt;prefers-color-scheme&lt;/code&gt; allows you to override your own CSS for users with a system dark mode enabled, this new option allows you to ask the browser to use some of its own default dark mode values.&lt;/p&gt;</description>
    </item>
    
    
    
    <item>
      <title>Using Slots in Custom Elements</title>
      <link>//newinweb.menardi.dev/2018/05/26/using-slots-in-custom-elements/</link>
      <pubDate>Sat, 26 May 2018 08:00:00 +0000</pubDate>
      
      <guid>//newinweb.menardi.dev/2018/05/26/using-slots-in-custom-elements/</guid>
      <description>&lt;p&gt;&lt;em&gt;This post is the final part in a series on Custom Elements. See the others about &lt;a href=&#34;//newinweb.menardi.dev/2018/04/29/custom-elements/&#34;&gt;Custom Elements basics&lt;/a&gt; and &lt;a href=&#34;//newinweb.menardi.dev/2018/05/09/shadow-dom/&#34;&gt;the Shadow DOM&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;In the previous posts about custom elements, we made a simple element which contained some text which was set using attributes. However, using attributes can be limiting as we can only pass simple text. &lt;em&gt;Slots&lt;/em&gt; allow us to set up our custom element to accept much more than one-line text.&lt;/p&gt;</description>
    </item>
    
    
  </channel>
</rss>
