diff options
author | Yuri Kobets <yuri.kobets@gmail.com> | 2023-06-07 02:52:59 +0300 |
---|---|---|
committer | Yuri Kobets <yuri.kobets@gmail.com> | 2023-06-07 02:52:59 +0300 |
commit | 7ec04267b170160c995cc2e8986baba8e577dd99 (patch) | |
tree | 9046f9a6fd6739be229e2294ecd42ad840cf4648 /test | |
parent | b0a6930308e9381d68ab86bdbfb59a6ae2f217d8 (diff) |
Fixed calculating min with for elements with floats
Fixes issue #99
Diffstat (limited to 'test')
-rw-r--r-- | test/render/test34.htm | 14 | ||||
-rw-r--r-- | test/render/test34.htm.png | bin | 0 -> 409 bytes | |||
-rw-r--r-- | test/render/test35.htm | 28 | ||||
-rw-r--r-- | test/render/test35.htm.png | bin | 0 -> 250 bytes | |||
-rw-r--r-- | test/render/test36.htm | 68 | ||||
-rw-r--r-- | test/render/test36.htm.png | bin | 0 -> 477 bytes |
6 files changed, 110 insertions, 0 deletions
diff --git a/test/render/test34.htm b/test/render/test34.htm new file mode 100644 index 00000000..34586732 --- /dev/null +++ b/test/render/test34.htm @@ -0,0 +1,14 @@ +<!-- +Test for issue #99 +--> +<table style="float: right; border: 1px solid black"> + <tr> + <td style="float: right" width="100%">Should be on right side</td> + </tr> +</table> +<div style="clear: both"></div> +<table style="float: left; border: 1px solid black"> + <tr> + <td style="float: left" width="100%">Should be on left side</td> + </tr> +</table> diff --git a/test/render/test34.htm.png b/test/render/test34.htm.png Binary files differnew file mode 100644 index 00000000..fd4dbab0 --- /dev/null +++ b/test/render/test34.htm.png diff --git a/test/render/test35.htm b/test/render/test35.htm new file mode 100644 index 00000000..aeffaec4 --- /dev/null +++ b/test/render/test35.htm @@ -0,0 +1,28 @@ +<style> + .vector-menu-tabs-legacy { + padding: 5px; + background-color: lightblue; + display: inline-block; + } + .vector-menu-tabs-legacy ul { + list-style: none; + margin: 0; + padding: 0; + } + .vector-menu-tabs-legacy li { + background-color: lightcoral; + float: left; + display: block; + margin: 0; + padding: 5px; + white-space: nowrap; + } +</style> + +<nav id="p-namespaces" class="vector-menu-tabs-legacy"> + <ul class="vector-menu-content-list"> + <li id="ca-nstab-main">Article</li> + <li id="ca-talk">Talk</li> + <li id="ca-talk1">T</li> + </ul> +</nav> diff --git a/test/render/test35.htm.png b/test/render/test35.htm.png Binary files differnew file mode 100644 index 00000000..9ab5b44d --- /dev/null +++ b/test/render/test35.htm.png diff --git a/test/render/test36.htm b/test/render/test36.htm new file mode 100644 index 00000000..62afa347 --- /dev/null +++ b/test/render/test36.htm @@ -0,0 +1,68 @@ +<style> + #mw-head { + position: absolute; + top: 0; + left: 0; + background-color: lightgray; + } + #right-navigation { + display: inline-block; + margin-top: 2.5em; + } + .vector-menu-tabs-legacy { + float: left; + height: 2.5em; + padding-left: 1px; + } + .vector-menu-tabs-legacy ul { + float: left; + list-style: none; + margin: 0; + padding: 0; + } + .vector-menu-tabs-legacy li { + background-color: lightblue; + float: left; + display: block; + margin: 0; + padding: 5px; + line-height: 1.125em; + white-space: nowrap; + } + .vector-search-box { + float: left; + margin-right: 5px; + margin-left: 5px; + background-color: lightgreen; + } + .vector-search-box-inner { + width: 200px; + height: 100%; + } + .vector-search-box-input { + width: 100%; + height: 30px; + box-sizing: border-box; + border: 1px solid #a2a9b1; + border-radius: 2px; + padding: 5px; + } +</style> + +<div id="mw-head"> + <div id="right-navigation"> + <nav id="p-views" class="vector-menu-tabs-legacy"> + <ul class="vector-menu-content-list"> + <li id="ca-view" class="mw-list-item">Read</li> + <li id="ca-view-source" class="mw-list-item">View source</li> + <li id="ca-history" class="mw-list-item">View history</li> + </ul> + </nav> + <div id="p-search" class="vector-search-box"> + <div id="simpleSearch" class="vector-search-box-inner"> + <div class="vector-search-box-input" id="searchInput"></div> + </div> + </div> + + </div> +</div> diff --git a/test/render/test36.htm.png b/test/render/test36.htm.png Binary files differnew file mode 100644 index 00000000..ef7f915a --- /dev/null +++ b/test/render/test36.htm.png |