overflow-areas-1-ref.html 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <!DOCTYPE html>
  2. <!-- Any copyright is dedicated to the Public Domain.
  3. - http://creativecommons.org/publicdomain/zero/1.0/ -->
  4. <html>
  5. <head>
  6. <title>Reference case</title>
  7. <style>
  8. input, button {
  9. border: 0; /* Combined, these mean the gray area is the */
  10. background: lightgray; /* border-box size. */
  11. outline: 2px solid black; /* The outlined area is the overflow area. */
  12. width: 1px; /* (To attempt to trigger overflow) */
  13. display: block; /* Put each button on its own line, w/ some margin, */
  14. margin-bottom: 5px; /* so that any overflow doesn't get stomped on. */
  15. font: 8px serif; /* (This just lets the testcase fit better on mobile.) */
  16. }
  17. .oh { overflow: hidden }
  18. </style>
  19. </head>
  20. <body>
  21. <!-- For the reference case, we just put "overflow:hidden" on everything. -->
  22. <input class="oh" type="reset">
  23. <input class="oh" type="submit">
  24. <input class="oh" type="button" value="InputTypeButton">
  25. <!-- ...with one exception: button with (default) overflow:visible.
  26. Such buttons *do* actually allow their contents to overflow. -->
  27. <button>ActualButton</button>
  28. <input class="oh" type="reset">
  29. <input class="oh" type="submit">
  30. <input class="oh" type="button" value="InputTypeButton">
  31. <button class="oh">ActualButton</button>
  32. <input class="oh" type="reset">
  33. <input class="oh" type="submit">
  34. <input class="oh" type="button" value="InputTypeButton">
  35. <button class="oh">ActualButton</button>
  36. <input class="oh" type="reset">
  37. <input class="oh" type="submit">
  38. <input class="oh" type="button" value="InputTypeButton">
  39. <button class="oh">ActualButton</button>
  40. </body>
  41. </html>