Open Seirdy opened 2 years ago
looks like this has been fixed in https://github.com/SerenityOS/serenity/commit/d27136fcb07cac8573cd2d2a1f070ad02dcfcf58
this added a display: block
rule to the <figure>
element. It was inlined before, which confused our browser, because in the example above the blockquote
was a block inside an inlined element.
however, the core issue of block elements inside inlined ones messing up the order still exist – <span>aaa <div>div</div> bbb</span>
displays like aaa bbb\ndiv
.
Test site: https://seirdy.one/2020/11/23/website-best-practices.html Mirror with compatible cipher suites: https://envs.net/~seirdy/2020/11/23/website-best-practices.html
Several
<blockquote>
elements on that page are enclosed by<figure>
elements, with<figcaption>
elements at the bottom of the figures containing attribution:However, the SerenityOS browser tends to render figures with the caption at the top of the figure:
This doesn't seem to happen for all figures, only the ones with short captions.
Source order, DOM order, and display order should generally match unless CSS alters the display order (bad practice but valid) or JS alters the display or DOM order.