From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id aEkLObIeSWNLKwEAbAwnHQ (envelope-from ) for ; Fri, 14 Oct 2022 10:32:51 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id QDrkN7IeSWO2FQAAG6o9tA (envelope-from ) for ; Fri, 14 Oct 2022 10:32:50 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 984233CF36 for ; Fri, 14 Oct 2022 10:32:50 +0200 (CEST) Received: from localhost ([::1]:41646 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ojG7c-0001eV-GN for larch@yhetil.org; Fri, 14 Oct 2022 04:32:48 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39220) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ojFsE-0006Kd-Jo for emacs-orgmode@gnu.org; Fri, 14 Oct 2022 04:16:54 -0400 Received: from mail-pj1-x1034.google.com ([2607:f8b0:4864:20::1034]:50925) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ojFsC-0004OK-OQ for emacs-orgmode@gnu.org; Fri, 14 Oct 2022 04:16:54 -0400 Received: by mail-pj1-x1034.google.com with SMTP id h12so4320263pjk.0 for ; Fri, 14 Oct 2022 01:16:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:from:to:cc:subject:date:message-id:reply-to; bh=JByse18Vwzgk7hWJCBpVzN2Zrab/19CEwGI4PSgf5KQ=; b=bY27C4DTfKmdAa5Jr/+JSi1PDMQRRTgSp1h//lRTw6Xj92yPdHPHqmJxwnWwQ91E7n ISf5Z4Pie6yr40TTDyihv+BwZFnn4BUC1qf3tOk8qPnbQe6Fj5Fl9tB1ph3en7MhLqVJ Vt7iVyVxKfXVstTyVA+xkjvtwhpD9PxMN5eepuIz1Aqs+emmgTHHdQxwf4jHblJhZOYJ mAUiefjx9jgqbrCiId3fW4DSfkhAvDxNV8QIobYFetwwLR0HJXFn1OkKHcfZhyA9c/v1 O+STk8lWpCWQFv6WQVgkQq++JZ2K64UlcPFaPRsyxfoklYY2p/xR7RO5CiUH8mqHOvOI g0Lg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=JByse18Vwzgk7hWJCBpVzN2Zrab/19CEwGI4PSgf5KQ=; b=QHR23BGJ6LtUG6L4ifcdcBXdrIQ7S4sN8muwMCnu/CwxRseCqIEpxxsh/hJnPpJ0pD qDTaRx96+QIrAHM+Zw9R/fCGAW/OujIUqbKt/wfg3Ms9kkcKL4IsZZDBFLXxWYWKaKXz ARvBx01r6IYH3k1n9vHj53sE05YQOrtq9uNw9VGOvXmJqvukIXWhaAGqyEk/9J2RF/ec jmgSTfZK6lROBp6VOeRwf5i7XeL56jRuY4g7HiUHQjt7KRJcEaCH3hF2MMZxUiIXkOAi dFlUZMjxucW+oim9PDqBekNjDL1jlS6Eg0tqi+U+gTXgxURiOcHTvGn3BRKb/fIm92az +C5g== X-Gm-Message-State: ACrzQf2MzK7XPbQQNLxb/4CG2sQqlOcFyW+ktAHCTTum85estyVAzhbf JNfRuLW8JwZ4rTt+RAVWaXCVLEsl0dwgbYIz X-Google-Smtp-Source: AMsMyM65/D/hSv/ZkkjtN7HIzzwvCeBrZyubvSQ1jlmmXLYb6JIf2GcLxw4MMS0fd5E1L/OTnu0v8Q== X-Received: by 2002:a17:90a:d3cb:b0:20d:92d6:a047 with SMTP id d11-20020a17090ad3cb00b0020d92d6a047mr13428435pjw.155.1665735411197; Fri, 14 Oct 2022 01:16:51 -0700 (PDT) Received: from localhost ([2409:8970:af2:32f:6c23:3ad5:f37d:541b]) by smtp.gmail.com with ESMTPSA id c9-20020a170903234900b00176dd41320dsm1104143plh.119.2022.10.14.01.16.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Oct 2022 01:16:50 -0700 (PDT) From: Ihor Radchenko To: Alexandre Duret-Lutz Cc: emacs-orgmode@gnu.org, tec@tecosaur.com Subject: Re: Org 9.5 broke the rendering of my SVG images In-Reply-To: <87o7uhp1n7.fsf@lrde.epita.fr> References: <87o7uhp1n7.fsf@lrde.epita.fr> Date: Fri, 14 Oct 2022 16:17:28 +0800 Message-ID: <875ygmzunb.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::1034; envelope-from=yantar92@gmail.com; helo=mail-pj1-x1034.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1665736370; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=JByse18Vwzgk7hWJCBpVzN2Zrab/19CEwGI4PSgf5KQ=; b=GneIPJqrzNiT2PAIT3vCNBkVJJBxogJAknBjDGzLRLKkhllZA8zC9AL/G2j7RlGRDRZMYG 5/WmnvO9iL5vaueQj90sSAngOSwgW22KRuovDOzIW+tRLaXCQrrmIZKTUKH0uaI6XMXY4c 1snpVLUjcfYbhXLc0T+tBETZ4Yk5ITP3HRgZ/X4vuNFsuXVCohmN1WQDU/I2vUqcDAbi3K Bb9P9QHNnIuw9zQb4stwKz0U76YBwK3aZu36przYdQEhX3IgaScjNx+cd4FGg6fGRvBZXO C82CG0wUUT/QGE201Tytd/rGfZDt8NOVrE5TI9KfthX+l1fAY4O0kOOk8Q4CUA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1665736370; a=rsa-sha256; cv=none; b=H41gQ82cBVkesGWPjX5Bm9XWcyfx+ptEhTQVdOVKCAxq4QxbxXV0hctR3J9smjpiS8PQzt MAvnBP9Tj8OriEc5ZUcU7qp91eYQUMw4S/766s6uWzEn/ON6zigQibrsQAlNFty4HUL4Ot ABxx9qz9d05r2LRhJrzAYfYVMoLeYfDwL8Lj8kSlAswsQB1z/MmzhRo0oQsEhQdmQbPoQS xzE5+MKJnDmbRcBE4/BPNtcj0XURwpzyJzZSDw5RYyqjQrICMLEN9l47MVBZ+CESkmUGwr 6BbgukK+IPM1FieyMq+5g4xGt5z1eSTSjb9xSfWx+f7N1ZojKwnnHNAnmDUwOA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=bY27C4DT; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -1.90 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=bY27C4DT; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 984233CF36 X-Spam-Score: -1.90 X-Migadu-Scanner: scn1.migadu.com X-TUID: yYm9kYbX1iRv Alexandre Duret-Lutz writes: > In Org 9.5, SVG images started being exported by the HTML exporter as > rather than . > > The patch causing that was > https://list.orgmode.org/87k0pemj6d.fsf@gmail.com/T/ > with two arguments: > 1) do not have an alt attribute > 2) will not render some SVG file correctly if it has no viewBox > (I'm assuming that the issue shown in that message is a missing viewBox). > > The reason I've noticed this change is that it broke my web pages. On > my pages, I use SVG to display many automata, and they all share a > common stylesheet. That stylesheet is not inlined into the SVG, rather, > it is a separate file included in the SVG files with > > so that the browser only need to download it once. > > Infortunately, does not allow external stylesheets to be > processed, so my stylesheets are now ignored. Note that one can also > build SVG images that include other SVG images, or SVG images that have > animations that start when you hover on some elements. All those > usages would break with . > > I've seen that very issue was discussed back in 2016 > https://list.orgmode.org/871t2iq353.fsf@iki.fi/T/ > where Christian Moe pointed out exactly this: > >> (2) You can also do other things with that you cannot with >> , like manipulating the SVG with Javascript and styling it with >> an external stylesheet (linked from the SVG, not the web page). > > So in the interest of allowing users to build documents where SVG > files are not static, self-contained images, it seems to me that Org > probably needs some way to specify whether SVG images should be > exported as or (or maybe even inlined). Confirmed. This is clearly a regression and should be fixed. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at