Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

report: add html report viewing support for safari #6143

Merged
merged 9 commits into from
Oct 5, 2018
Merged

Conversation

exterkamp
Copy link
Member

Summary
Added Safari support! Main areas of focus were:

  • fixing tables
  • fixing header sticky-scrolling
  • fixing scroll > 100% making LH icon scale too large

}

/* Keep bytes columns narrow if they follow the URL column */
/* Keep columns narrow if they follow the URL column */
/* 12% width was found to be a good width for en and i18n without being too wide */
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

12% was determined to be a decent narrow width, but wide enough for column headings

lighthouse-core/report/html/report-styles.css Show resolved Hide resolved
@@ -83,7 +85,8 @@
<template id="tmpl-lh-opportunity">
<div class="lh-audit lh-audit--load-opportunity">
<details class="lh-expandable-details">
<summary class="lh-audit__header lh-expandable-details__summary">
<summary>
<div class="lh-audit__header lh-expandable-details__summary">
<div class="lh-load-opportunity__cols">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

need some indentation fixes here

lighthouse-core/report/html/report-styles.css Show resolved Hide resolved
.lh-table-column--url + .lh-table-column--bytes + th.lh-table-column--timespanMs {
max-width: var(--bytes-col-width);
width: 12%;
}

.lh-table-column--code {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

while you're here, i notice that this var doesnt exist anymore.

it's used on these two audits at least

image

seems like its fine without a max-width being set.

@@ -648,6 +646,7 @@
}

.lh-header-sticky {
position: -webkit-sticky;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the time almost certainly isn't now, but do you see a path of us bringing in some build process with prefixers?

@paulirish paulirish merged commit 7c464af into master Oct 5, 2018
@paulirish paulirish deleted the safari-reports branch October 5, 2018 01:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants