https://bugs.freedesktop.org/show_bug.cgi?id=81297

--- Comment #7 from Jay Philips <[email protected]> ---
(In reply to V Stuart Foote from comment #6)
> @Jay, I know this is kind of old and moldy, but a browser default color is
> not specified for <h1> - <h6> elements--is that what you meant?  See refs

@Stuart, yes there isnt a default color used in h1 to h6 elements but all
browsers show it in black by default, so LO showing it in gray wasnt good.

> When saved and opened as HTML in a browser a LibreOffice generated HTML
> document does not specify, nor show a color.  It is only when opened with
> LibreOffice writer with defaults that it currently will show gray in heading
> 3 <h3> and heading 4 <h4> elements because of Ahmad H. Al Harthi's default
> template rework in Oct 2013 defining the headline values for the default
> template style.

Yes this was the main conflict i wanted to address that rendering in LO and the
browser were different and they shouldnt be.

> I've posted a proposed patch to bug 82041 to remove the gray color from
> headline 3 and headline 4--will allow HTML documents with <h3> and <h4>
> elements to use defaults.

Thanks for that.

> Was it just the color that was objectionable--or was there a more general
> concern that LibreOffice should behave as if it also embedded "default" CSS2
> for HTML 4 elements.

Well this bug was only trying to address the color aspect of it, but ideally LO
should use html default styles when working with html documents.

> Believe these are the "suggested" W3C CSS defaults--note no color
> specification, but as can be seen in the refs each browser (and application)
> will set their own.  Should LibreOffice?

Looking at the refs, i can see all of them use the same style for h1, but may
add additional things to it that are only supported by their browser.

Mozilla
h1 {
  display: block;
  font-size: 2em;
  font-weight: bold;
  margin: .67em 0;
}

Webkit
h1 {
    display: block;
    font-size: 2em;
    -webkit-margin-before: 0.67em;
    -webkit-margin-after: 0.67em;
    -webkit-margin-start: 0;
    -webkit-margin-end: 0;
    font-weight: bold
}

IE 9
h1 {
    display: block;
    font-size: 2em;
    font-weight: bold;
    margin: 0.67em 0;
    page-break-after: avoid;
}

I think we should use mozilla's specification as they stick to css standards
and dont add in their own browser-specific css.

> You'll see this or similar described as default CSS Settings for the heading
> elements -- LibreOffice does not seem to comply when viewing HTML markup.

If it is possible to load up default html styles into writer when it opens as
writer web, then LO should show an html document with html styles if it wants
to be considered an WYSIWYG html editor, as it should look no different in LO
as it does in a browser.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to