fieldset-ref.html 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. <!DOCTYPE HTML>
  2. <html><head>
  3. <meta charset="utf-8">
  4. <title>Testcase for bug 485149</title>
  5. <style type="text/css">
  6. html,body {
  7. color:black; background-color:white; font-size:16px; padding:0; margin:0;
  8. }
  9. body {padding:20px;}
  10. field {
  11. display:block;
  12. overflow:hidden;
  13. background:yellow;
  14. box-shadow:0 0 5px 5px #cccccc;
  15. border:1px solid #000000;
  16. border-radius:7px;
  17. width:200px;
  18. height:50px;
  19. margin-left:5px;
  20. margin-right:2px;
  21. padding:10px;
  22. border-box;
  23. }
  24. .with-legend {
  25. margin-top:8px;
  26. height:42px;
  27. }
  28. p { height:40px; margin:0; }
  29. #mask1 {
  30. position:absolute;
  31. left:0;
  32. top:0;
  33. background:black;
  34. z-index:1;
  35. width:150px;
  36. height:700px;
  37. }
  38. #mask2 {
  39. position:absolute;
  40. left:170px;
  41. top:330px;
  42. background:black;
  43. z-index:1;
  44. width:150px;
  45. height:300px;
  46. }
  47. #mask3 {
  48. position:absolute;
  49. left:0;
  50. top:380px;
  51. background:black;
  52. z-index:1;
  53. width:300px;
  54. height:300px;
  55. }
  56. </style>
  57. </head>
  58. <body>
  59. <field class="with-legend">
  60. 1
  61. </field>
  62. <p></p>
  63. <field class="with-legend" style="position:relative">
  64. 2
  65. </field>
  66. <p></p>
  67. <field>
  68. 3
  69. </field>
  70. <p></p>
  71. <field class="with-legend" style="border-color:transparent">
  72. 4
  73. </field>
  74. <div id="mask1"></div>
  75. <div id="mask2"></div>
  76. <div id="mask3"></div>
  77. </body>
  78. </html>