[MARGIN-C]Indenting text twice adds space on top
Categories
(Core :: Layout, defect, P3)
Tracking
()
People
(Reporter: moz_user, Unassigned)
References
Details
(Keywords: testcase, topembed+, Whiteboard: edt_x3,editorbase+)
Attachments
(1 file, 1 obsolete file)
(deleted),
text/html
|
Details |
Updated•24 years ago
|
Comment 1•24 years ago
|
||
Updated•24 years ago
|
Comment 2•24 years ago
|
||
Reporter | ||
Comment 3•24 years ago
|
||
Comment 4•24 years ago
|
||
Reporter | ||
Comment 5•24 years ago
|
||
Reporter | ||
Comment 6•24 years ago
|
||
Comment 8•24 years ago
|
||
Comment 9•24 years ago
|
||
Comment 10•24 years ago
|
||
Comment 12•24 years ago
|
||
Comment 13•24 years ago
|
||
Comment 14•24 years ago
|
||
Comment 15•24 years ago
|
||
Comment 16•24 years ago
|
||
Updated•23 years ago
|
Comment 18•23 years ago
|
||
Comment 19•23 years ago
|
||
Comment 20•22 years ago
|
||
Comment 21•22 years ago
|
||
Comment 22•22 years ago
|
||
Comment 24•22 years ago
|
||
Comment 25•22 years ago
|
||
Comment 26•22 years ago
|
||
Comment 27•22 years ago
|
||
Comment 28•22 years ago
|
||
Comment 29•22 years ago
|
||
Comment 30•22 years ago
|
||
Updated•22 years ago
|
Comment 32•22 years ago
|
||
Comment 33•22 years ago
|
||
Comment 35•22 years ago
|
||
Updated•22 years ago
|
Comment 36•22 years ago
|
||
Comment 37•22 years ago
|
||
Comment 39•21 years ago
|
||
Comment 40•21 years ago
|
||
Updated•15 years ago
|
Comment 41•6 years ago
|
||
Comment 42•3 years ago
|
||
The bug assignee didn't login in Bugzilla in the last 7 months.
:dholbert, could you have a look please?
For more information, please visit auto_nag documentation.
Comment 43•3 years ago
|
||
Seems there was a lot of activity 19 years ago, and then this went silent. It's not clear to me that there's anything to be done at this point.
Our behavior here seems correct as far as I can tell. Chrome/Safari agree with us on the attached testcase if I add a doctype to render it in standards mode. If I load the testcase as it currently stands (without a doctype), we render it the same as in standards mode; but Chrome/Safari change their rendering and apparently disregard the margin-top:1em
on the blockquote. Their devtools do show that style as being present (as specified-style from the UA stylesheet and as the actual computed style), but they seem to disregard it. But if I explicitly add margin-top:1em
or margin-block-start:1em
to one of the blockquote elements, then they change their behavior and match us.
So they're doing something very-odd in this particular quirky edge case, and given the silence here, I don't know that it would help or that it's particularly useful for us to try to match that odd behavior.
Comment 44•3 years ago
|
||
(In reply to Daniel Holbert [:dholbert] from comment #43)
Their devtools do show that style as being present (as specified-style from the UA stylesheet and as the actual computed style), but they seem to disregard it. But if I explicitly add
margin-top:1em
ormargin-block-start:1em
to one of the blockquote elements, then they change their behavior and match us.So they're doing something very-odd in this particular quirky edge case, and given the silence here, I don't know that it would help or that it's particularly useful for us to try to match that odd behavior.
Interestingly, it looks like we have a version of that same quirk, but our version only works for a single layer of blockquote.
Here are some testcases to exercise/compare this quirk, which is most-visible in Firefox in testcase 3 here. Testcases 1 and 2 are in standards mode, testcases 3 and 4 are the same but in quirks mode. (And the even testcases have 2 nested blockquotes instead of 1.)
(1) All browsers render with margin-top:1em:
data:text/html,<!DOCTYPE html><body style="margin:0"><blockquote>Hello
(2) All browsers render with margin-top:1em:
data:text/html,<!DOCTYPE html><body style="margin:0"><blockquote><blockquote>Hello
(3) All browsers render with margin-top:0:
data:text/html,<body style="margin:0"><blockquote>Hello
(4) Firefox renders with margin-top:1em, other browsers render with margin-top:0:
data:text/html,<body style="margin:0"><blockquote><blockquote>Hello
Firefox renders cases 1, 2, and 4 the same; our behavior on 3 looks like it comes from this quirk.css style rule, which sets the margin-top to 0 on blockquote
if it's the first thing in the document:
https://searchfox.org/mozilla-central/rev/1f617334179cf28b4b310d1d116ddbc8ef3348ea/layout/style/res/quirk.css#55-63
(And our devtools do usefully show that being the case, i.e. we show a computed margin-top
of 0px
on the first blockquote element in cases 3 and 4.)
Presumably Blink/WebKit have a more-magical layout-time implementation of their version of this quirk; and their implementation doesn't get reflected in their devtools' visualization of the computed margin-top; and their implementation apparently also nerfs the margin-top of arbitrarily-many nested blockquote elements at the start of the document, rather than the first one (which is why they differ from us on the attached testcase and on case (4) in my snippet above.)
Anyway; given this is an ancient quirks-mode-specific thing with no activity for 19 years, I think it's fine to leave it alone unless there's actual content which compels us to change behavior and standardize a particular behavior here. It would be nice to have alignment between browsers one way or another, but I'm not sure it's a common enough pattern to prioritize or spend time/resources on that.
Description
•