WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED INVALID
217378
CSS's `display: initial;` causes `<div>` to render as `display: inline;`. Should be `display: block;`
https://bugs.webkit.org/show_bug.cgi?id=217378
Summary
CSS's `display: initial;` causes `<div>` to render as `display: inline;`. Sho...
Mike Herchel
Reported
2020-10-06 04:59:31 PDT
When using `display: initial` on a DIV element, it causes the element to render as inline, when it should be rendering as block. This also happens when using the `all: initial` reset. (
https://developer.mozilla.org/en-US/docs/Web/CSS/all
)
https://drafts.csswg.org/css-cascade/#initial-value
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2020-10-07 22:05:10 PDT
<
rdar://problem/70079759
>
Antti Koivisto
Comment 2
2020-10-07 22:35:16 PDT
This is the correct behavior and matches all browsers. The initial value of 'display' property is 'inline'.
https://jsbin.com/lojahoj/4/edit?html,output
Use 'revert' if you want to get the user agent stylesheet value.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug