aboutsummaryrefslogtreecommitdiffstats
path: root/core/css
diff options
context:
space:
mode:
authorDaniel Calviño Sánchez <danxuliu@gmail.com>2020-02-27 10:35:54 +0100
committerDaniel Calviño Sánchez <danxuliu@gmail.com>2020-02-27 10:35:54 +0100
commit243feca7869b65945bc6b617d378d7d76f60754d (patch)
treed83e195153af26c531542bfe4407890918a81689 /core/css
parent5f1713f9db76ee62bcd7cbe4a0f1227c75b00e3d (diff)
downloadnextcloud-server-243feca7869b65945bc6b617d378d7d76f60754d.tar.gz
nextcloud-server-243feca7869b65945bc6b617d378d7d76f60754d.zip
Adjust list of replaced elements to the spec
"button, textarea, select, div[contenteditable='true']" were removed and "audio, canvas, embed, iframe" were added. Note that this is a coarse-grained list; according to the spec some of the elements, like canvas or input, might be treated as a replaced element in some cases and as ordinary elements in others: https://html.spec.whatwg.org/multipage/rendering.html#replaced-elements For now all the elements that might be replaced elements use the loading image by default, so apps will need to override that when the elements are treated as ordinary elements. Of course that can be flipped in the future to instead make an element to use the "::after" approach by default if it is found that the element requires the override often. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Diffstat (limited to 'core/css')
-rw-r--r--core/css/icons.scss2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/css/icons.scss b/core/css/icons.scss
index 53ae4d77118..ebf61b761e7 100644
--- a/core/css/icons.scss
+++ b/core/css/icons.scss
@@ -81,7 +81,7 @@
}
/* Css replaced elements don't have ::after nor ::before */
-img, object, video, button, textarea, input, select, div[contenteditable='true'] {
+audio, canvas, embed, iframe, img, input, object, video {
&.icon-loading {
background-image: url('../img/loading.gif');
}