From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jim Porter Newsgroups: gmane.emacs.devel Subject: Re: Drawing UI elements behind text Date: Sun, 10 Nov 2024 11:29:27 -0800 Message-ID: References: <641230ac-2dbc-42ac-a57e-acda77fe9296@imayhem.com> <51478cef-3d2b-07bc-797d-ae80ab6e20d2@gmail.com> <86a5e7kjyn.fsf@gnu.org> <74058eb5-2d50-4111-5d43-4d05387efd6a@gmail.com> <867c9alwqv.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26774"; mail-complaints-to="usenet@ciao.gmane.io" Cc: cpardo@imayhem.com, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Nov 10 20:30:01 2024 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1tADdJ-0006pJ-Pc for ged-emacs-devel@m.gmane-mx.org; Sun, 10 Nov 2024 20:30:01 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tADct-0001O8-95; Sun, 10 Nov 2024 14:29:35 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tADcr-0001Nr-Ij for emacs-devel@gnu.org; Sun, 10 Nov 2024 14:29:33 -0500 Original-Received: from mail-pf1-x42a.google.com ([2607:f8b0:4864:20::42a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tADcq-0003oM-0L; Sun, 10 Nov 2024 14:29:33 -0500 Original-Received: by mail-pf1-x42a.google.com with SMTP id d2e1a72fcca58-720c2db824eso4136904b3a.0; Sun, 10 Nov 2024 11:29:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1731266969; x=1731871769; darn=gnu.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:mime-version:date:message-id:from:to:cc :subject:date:message-id:reply-to; bh=8ASk8uQOd0XcXSiVh+MQRhnN411g/m8YjRhEDX3A1FE=; b=gnNSa4Yb+Ft+xcbCOeVK8TxCgpdVwUxeChSPPeLDyTDYVWwCavFOMdlZ71enImhFcY FPvV6xBHcH7TFWrPXmdUAZIYTen66jLwHyy/Ob1WKmRMUA9DxyZ90bdtwzrPgNEPvT6R GZdqqCf/GWEHyaU4BeaEurPK0n3ASsTaSnJl6zgH+7lzg2Hz74LAx4j5CWivUinktfKn ne5qph5JY5IXpVK1OloXVBcdcf4lclevy1en6u9KxSoOl0EFpvMOzBIdmb8t/MsnpiOt LpYOjJzJvdI0wrcnbMK95wMCw96Eb9zV3JPywolZL5BcsLv4jLAYigaor4y0o4LeNnxw kKgw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731266969; x=1731871769; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=8ASk8uQOd0XcXSiVh+MQRhnN411g/m8YjRhEDX3A1FE=; b=cC+53UVQ28ifGs8jJ3JHv7cLOoP1GVoJcsfqOkBjoGYQ7r6hntwOTl6uLFqTUGXKGf 3+rpOWZe5GN+YiL4X8zq7YeI1fx6m8rDUNfxQu2e0Qwvog5KhrsYE97LbzJwqLIfA7XQ CDuWI6QSyhSZVINc5zSWOcZFl8J7sR8arvJUe1juAS9hJPhKPNCkT2g2gtfFrfMfLJVe TuXgg5CQUFLzzC7lNbiSzHkHJ0EEEXwjdDlb4GWbtuhoQF45aI1dKnEzZ2aW7qhQqFGp scCK04GAk8FKDwaReS0iMh1zqH7bFSdK98IBDXgpmFBKCjKtYZ8xOuN+2A2Yauwlej5A tu3g== X-Forwarded-Encrypted: i=1; AJvYcCWDxzO4wYbts6FJAQax2Fo003ueG9mvNqvhcJpGWKcJy5jX2PjkQ0CbfMMtk7giwPCo/iqaQQyneyKutA==@gnu.org X-Gm-Message-State: AOJu0Yzhw3Zs8WITGL7En+RO2kyIoJ6q5qFenRVachoLQza1/GhBPpIa 2N2iABJoFXqD/nIPl8CZZG1aJdEq+FJqwIBw+oaLY4RIreRAVPD1ryIGLw== X-Google-Smtp-Source: AGHT+IFiFKf87eZb47TbSg5do4lEv9qfaD1d4LwvIgK0VjlhHWU0ZSJecyW1u/Zj37CRAhae23NULQ== X-Received: by 2002:a05:6a20:12d2:b0:1cf:50ce:58d7 with SMTP id adf61e73a8af0-1dc22b57643mr14527447637.29.1731266969229; Sun, 10 Nov 2024 11:29:29 -0800 (PST) Original-Received: from [192.168.1.2] (syn-023-240-098-037.res.spectrum.com. [23.240.98.37]) by smtp.googlemail.com with ESMTPSA id d2e1a72fcca58-724078a7c1csm7473382b3a.54.2024.11.10.11.29.28 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 10 Nov 2024 11:29:28 -0800 (PST) Content-Language: en-US In-Reply-To: <867c9alwqv.fsf@gnu.org> Received-SPF: pass client-ip=2607:f8b0:4864:20::42a; envelope-from=jporterbugs@gmail.com; helo=mail-pf1-x42a.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_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-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:325386 Archived-At: On 11/10/2024 11:22 AM, Eli Zaretskii wrote: > Once the display engine knows at what X coordinate the image slice > should start, it can stop laying out other display elements and switch > to the slice when that X coordinate is reached. I was thinking more about the Y coordinates and having gaps between consecutive slices if we made a mistake. That's probably fixable, but it seems like it would require a lot of care to avoid bugs. >> Or what about applying text scaling? > > How is this different from what we do today when text-scaling happens > in a buffer where images are displayed together with text? I'm just worried about this due to seeing some similar bugs come up in the visual-wrap-prefix-mode code. >> I suppose if we deemed this feature important, we could probably address >> all of those, but I'm not sure it's worth the effort. > > What alternative do we have? Showing the images alongside text > without letting the images scroll with the text (vertically and > horizontally) will not fly. How do you scroll the images with the > text except by displaying them as part of the "normal" display layout? Personally, I'm ok with saying we just don't support laying out images like this in EWW. For it to have a practical effect, we'd probably need to have more-complete CSS support anyway. That's not easy either (though I have some ideas about how we could do it if we thought it would be worthwhile).