[Webkit-unassigned] [Bug 245156] Align "UA" stylesheet for "hr", "fieldset", "marquee", "details" etc. with HTML Spec

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Sep 14 04:43:28 PDT 2022


https://bugs.webkit.org/show_bug.cgi?id=245156

--- Comment #2 from Ahmad Saleem <zlip.792 at gmail.com> ---
(In reply to Karl Dubost from comment #1)
> For reference
> 
> =================================
> WebKit
> https://searchfox.org/wubkat/source/Source/WebCore/css/html.css
> 
> marquee {
>     display: inline-block;
> }
> 
> hr {
>     display: block;
>     margin-block-start: 0.5em;
>     margin-block-end: 0.5em;
>     margin-inline-start: auto;
>     margin-inline-end: auto;
>     border-style: inset;
>     border-width: 1px;
> }
> 
> fieldset {
>     display: block;
>     margin-inline-start: 2px;
>     margin-inline-end: 2px;
>     padding-block-start: 0.35em;
>     padding-inline-start: 0.75em;
>     padding-inline-end: 0.75em;
>     padding-block-end: 0.625em;
>     border: 2px groove ThreeDFace;
>     min-width: min-content;
> }
> 
> 
> =================================
> Blink
> https://github.com/chromium/chromium/blob/main/third_party/blink/renderer/
> core/html/resources/html.css
> 
> marquee {
>     display: inline-block;
>     width: -webkit-fill-available;
> }
> 
> hr {
>     display: block;
>     overflow: hidden;
>     unicode-bidi: isolate;
>     margin-block-start: 0.5em;
>     margin-block-end: 0.5em;
>     margin-inline-start: auto;
>     margin-inline-end: auto;
>     border-style: inset;
>     border-width: 1px
> }
> 
> fieldset {
>     display: block;
>     margin-inline-start: 2px;
>     margin-inline-end: 2px;
>     padding-block-start: 0.35em;
>     padding-inline-start: 0.75em;
>     padding-inline-end: 0.75em;
>     padding-block-end: 0.625em;
>     border: 2px groove #C0C0C0;
>     min-inline-size: min-content;
> }
> 
> 
> =================================
> Gecko 
> https://searchfox.org/mozilla-central/source/layout/style/res/html.css
> 
> marquee {
>   inline-size: -moz-available;
>   display: inline-block;
>   vertical-align: text-bottom;
>   text-align: start;
> }
> 
> marquee:is([direction="up"], [direction="down"]) {
>   block-size: 200px;
> }
> 
> /* <hr> noshade and color attributes are handled completely by
>  * HTMLHRElement::MapAttributesIntoRule.
>  * https://html.spec.whatwg.org/#the-hr-element-2
>  */
> hr {
>   color: gray;
>   border-width: 1px;
>   border-style: inset;
>   margin-block-start: 0.5em;
>   margin-block-end: 0.5em;
>   margin-inline-start: auto;
>   margin-inline-end: auto;
>   overflow: hidden;
> 
>   /* FIXME: This is not really per spec */
>   display: block;
> }
> 
> hr[size="1"] {
>   border-style: solid none none none;
> }
> 
> 
> For details and summary it will be slightly complex, because there are
> specific behaviors associated to this. See Bug 157323
> 
> I have the feeling that would be probably addressing each of them separately
> instead of one single PR.

Yes - I have already created separate bugs for "fieldset" and "marquee", will ignore "details and summary" for now but will try to do "hr" but I noticed that there were a lot of failures let's see.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20220914/84ff5233/attachment.htm>


More information about the webkit-unassigned mailing list