Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
CSS
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
4 Jul 2014 at 17:14 UTC
Updated:
1 Sep 2014 at 17:00 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
lewisnymanThat was therapeutic. How many KBs does that removed from the codebase?
Comment #2
nod_While modernizr was updated in the process, the diff only contains svg test change no other modernizr-related code was changed.
Comment #3
chx commented73 files changed, 7 insertions(+), 404 deletions(-)
GO!
Comment #4
alexpottWe've still got rules that refer to
.no-svgin toolbar.icons.cssComment #5
lauriiiComment #6
tuutti commentedThe patch removes
.no-svgleftovers that @alexpott mentioned in his comment #4Comment #7
lewisnymanI quickly grepped no-svg and found nothing. RTBC++
Comment #8
alexpottCommitted 9e4300f and pushed to 8.x. Thanks!
Comment #10
tim.plunkettWell, some of those PNGs were still being used.
YOLO indeed.
Here's the one I hit.
Comment #11
tim.plunkettComment #12
sqndr commentedI assumed all these lined need a change to *.svg? Don't know how to review this patch?
Comment #13
lewisnymanYep pretty much, I didn't realise the pngs were being used on their own. Let testbot have at it.
Comment #14
tim.plunkettI think this is worth writing a quick test for.
Both the simpletest results page as well as the update status report are visually broken in HEAD.
Comment #15
steveoliver commentedI'd like to help here. @tim "A quick test" being a file_exists() for each expected system image, or what?
Comment #16
pwolanin commentedI'm seeing this also, but not sure a test makes sense unless it's somehow to scan all the admin pages and look for images that are 404
That would be a more useful generic test.
Comment #17
tim.plunkettI was just thinking of a test for the status report page.
Comment #18
pwolanin commented@tim.plunkett - checking IMG tags for 404s? If we are going to write a test, it should be non-fragile.
Comment #19
lewisnymanhmm, shouldn't these icons be added using CSS anyway?
Comment #20
pwolanin commented@LewisNyman - hmm, actually I think they are on the status page, but IMG tags for simpletest it seems.
Not sure how best to test CSS files for image 404s
Comment #21
lewisnymanWe don't have a great way of testing visual regressions yet: #2099579: Discuss automated visual regression testing #2229187: SiteEffect: Automated frontend regression testing
Comment #22
jwilson3Based on the fact that we cant currently test for visual changes from css, and in the interest of getting head un-broken, could #12 be committed, and then a follow-up issue be created to refactor the hardcoded images in simpletest into CSS similar to the status report page. With the status icons built in a consistent way through CSS, the visual regression testing discussion will be made easier.
Comment #23
lewisnymanYeah, It feels like this issue has hit a dead end. It's really simple to fix the regression, then we can figure out what's our plan going forward.
Comment #25
lauriiiComment #26
lauriiiDecided to reroll the patch..
Comment #30
lauriiiRerolled the patch against wrong branch. Remember to change your branch to 8.0.x :)
Comment #31
vijaycs85created #2322551: Simpletest module referrring to wrong icon location (.png instead of .svg) and looks like related this issue.
ref: https://twitter.com/alexpott/status/499064691193151488
Comment #32
lewisnymanThis patch is ready to go, unless someone feels we should move the fix to the newly created issue.
Comment #33
vijaycs85Looks good. +1 for RTBC.
Comment #34
alexpottCommitted 0aaa1c8 and pushed to 8.0.x. Thanks!