flexbox-align-self-baseline-horiz-3-ref.xhtml 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Any copyright is dedicated to the Public Domain.
  4. http://creativecommons.org/publicdomain/zero/1.0/
  5. -->
  6. <!-- Reference case for behavior of the 'baseline' value for align-items and
  7. align-self.
  8. NOTE: For multi-line 'display: block' flex items in the testcase, we use
  9. an inline-table here in the reference case, so that we get first-line
  10. baseline alignment. (If we used an inline-block instead, that would give
  11. us *last-line* baseline alignment.)
  12. -->
  13. <html xmlns="http://www.w3.org/1999/xhtml">
  14. <head>
  15. <style>
  16. .flexbox {
  17. display: block;
  18. border: 1px dashed blue;
  19. font: 14px sans-serif;
  20. }
  21. div { display: inline-block; }
  22. table { display: inline-table; }
  23. .lime { background: lime; }
  24. .pink { background: pink; }
  25. .aqua { background: aqua; }
  26. i { display:inline-block; width:20px; height:2px; background:black; }
  27. .ref {
  28. -moz-appearance:none;
  29. -ms-appearance:none;
  30. -webkit-appearance:none;
  31. appearance:none;
  32. border:none;
  33. margin:0;
  34. padding:0;
  35. border-bottom:2px solid black;
  36. width:20px;
  37. }
  38. </style>
  39. </head>
  40. <body>
  41. <div class="flexbox">
  42. <div class="lime">text</div
  43. ><button>btn</button
  44. ><label class="pink">label</label
  45. ><table cellspacing="0" cellpadding="0" class="aqua">
  46. <label>lab<br/>el</label>
  47. </table
  48. ><table cellspacing="0" cellpadding="0">
  49. <fieldset>field<br/>set</fieldset>
  50. </table
  51. ><table cellspacing="0" cellpadding="0">
  52. <fieldset><legend>leg</legend>field<br/>set</fieldset>
  53. </table
  54. ><table cellspacing="0" cellpadding="0">
  55. <fieldset><legend>leg<br/>end</legend>field<br/>set</fieldset>
  56. </table>
  57. </div>
  58. <div class="flexbox" style="font-size:0"><input type="radio"
  59. /><input type="checkbox"
  60. /><input type="checkbox" class="ref"/></div>
  61. </body>
  62. </html>