Bug 236730 - Remove non-standard display:block UA stylesheet rule for <layer>
Summary: Remove non-standard display:block UA stylesheet rule for <layer>
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: Safari Technology Preview
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: zalan
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-02-16 12:46 PST by Simon Pieters (:zcorpan)
Modified: 2022-03-05 13:25 PST (History)
11 users (show)

See Also:


Attachments
Patch (1.41 KB, patch)
2022-03-05 06:14 PST, zalan
no flags Details | Formatted Diff | Diff
Patch (2.88 KB, patch)
2022-03-05 08:34 PST, zalan
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Simon Pieters (:zcorpan) 2022-02-16 12:46:35 PST
What steps will reproduce the problem?
(1) Open data:text/html,a<layer>b
(2)
(3)

What is the expected result?
"ab" should be on one line (because <layer> should be display:inline)

What happens instead?
"a" and "b" are on separate lines (because the UA stylesheet has layer { display:block })

https://github.com/WebKit/WebKit/blob/main/Source/WebCore/css/html.css#L53-L55

This is in violation with the HTML standard which doesn't say <layer> should have any UA style: https://html.spec.whatwg.org/multipage/rendering.html#rendering

Chromium also has this bug (https://bugs.chromium.org/p/chromium/issues/detail?id=1298197 ), but not Gecko.
Comment 1 Radar WebKit Bug Importer 2022-02-23 12:47:15 PST
<rdar://problem/89372670>
Comment 2 zalan 2022-03-05 06:14:04 PST
Created attachment 453909 [details]
Patch
Comment 3 zalan 2022-03-05 08:34:32 PST
Created attachment 453911 [details]
Patch
Comment 4 EWS 2022-03-05 13:25:22 PST
Committed r290870 (248101@main): <https://commits.webkit.org/248101@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 453911 [details].