Bug 188836 - overflow: hidden on fieldset can hide the legend
Summary: overflow: hidden on fieldset can hide the legend
Status: RESOLVED WORKSFORME
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: Safari Technology Preview
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: FromImplementor
Depends on:
Blocks: 188643
  Show dependency treegraph
 
Reported: 2018-08-22 04:45 PDT by Simon Pieters (:zcorpan)
Modified: 2022-06-21 14:53 PDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Simon Pieters (:zcorpan) 2018-08-22 04:45:45 PDT
See http://software.hixie.ch/utilities/js/live-dom-viewer/saved/6137

<!DOCTYPE html>
<title>fieldset and overflow</title>
<style>
fieldset { margin:0; padding: 0; overflow: hidden; border: none; border-top: 1em solid transparent; }
legend { padding: 0; }
</style>
<p>It should say PASS below.</p>
<fieldset>
 <legend>PASS</legend>
</fieldset>

(Changing the border thickness to 0.5em clips half of the legend.)
Comment 1 Simon Pieters (:zcorpan) 2018-08-22 04:55:28 PDT
https://github.com/web-platform-tests/wpt/pull/12619