New issue
Advanced search Search tips

Issue 892492 link

Starred by 1 user

Issue metadata

Status: Assigned
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

MHTML generator does not serialize document.styleSheets

Project Member Reported by l...@chromium.org, Oct 5

Issue description

Chrome Version: 71.0.3556.0

What steps will reproduce the problem?
(1) Enable the flag "Save Page as MHTML"
(2) Open a site with styles defined using CSSRuleList, e.g. https://twitter.com/i/flow/signup
(3) Ctrl-S > Save as Webpage, Single File
(4) Open the result

What is the expected result?
Loaded MHTML file should look similar to original

What happens instead?
Styles are dropped
Screenshot: https://imgur.com/a/6MTm9XI

The site's first <style> tag has ".sheet", also found in "document.stylesheets".  Since the tag is not serialized, the styles are dropped.
 
Owner: jianli@chromium.org
Status: Assigned (was: Untriaged)
Jian, please take a look at this.
Related: on www.theverge.com there are some fonts ("Heroic") not serialized in MHTML.  Similar to the stylesheet case, fonts loaded via `document.fonts` are  dropped: `document.fonts.load("12px MyFont", ...)`

Sign in to add a comment