S R T B H P N
Tests.html

Test Webcomponent Libraries

Implements W3C/Google webcomponents

Works with FireFox, Chrome, Safari. Edge rendering has problems.

hidephotosizer-block

Figure 1. ThreadPool
Hideable-Resizeable photo is created with this code:
  <hidephotosizer-block 
    src="Pictures/ThreadPool.JPG" 
    width="300" 
    class="photoSizerBlock left"
  >
    <span style="font-family:'Comic Sans MS';">
      Figure 1. ThreadPool
    </span>
  </hidephotosizer-block>

photosizer-block

Figure 1. ThreadPool
Resizeable photo is created with this code:
  <photosizer-block 
    src="Pictures/ThreadPool.JPG" 
    width="300" 
    class="photoSizerBlock left"
  >
    <span style="font-family:'Comic Sans MS';">
      Figure 1. ThreadPool
    </span>
  </photosizer-block>

photo-block

Figure 1. ThreadPool
Photo is created with this code:
  <photo-block 
    src="Pictures/ThreadPool.JPG" 
    width="300" 
    class="photoBlock left"
  >
    <span style="font-family:'Comic Sans MS';">
      Figure 1. ThreadPool
    </span>
  </photo-block>

code-block

class X { public: X(); X(const X& x); -- members elided -- };
Fig 1. a caption
Code block is created with this code:
      <code-block class="codeTheme">
class X {
public:
  X();
  X(const X& x);
  -- members elided --
};

<hr style="border-top:1px solid white;" />Fig 1. a caption
      </code-block>

References:

  1. Issue with Chrome loading innerHTML
  2. polyfills CDN
  3. customelements - google.com
  4. shadowdom - google.com
  5. webcomponents - htm5rocks.com
  6. attributes & properties - alligator.io
  7. styling components - alligator.io
  8. slots - alligator.io
  9. polyfills - alligator.io
  10. styling webcomponent - css-tricks.com
  11. encapsulating style and structure - css-tricks.com
  12. creating custom component from scratch - css-tricks.com
  13. Using custom elements - mozilla.org
  14. introduction to webcomponents - webcomponents.org
  15. build web components - dev.to
  16. tutorial - robinwieruch.de
  17. introduction - grapecity.com