Skip to content
Snippets Groups Projects
Commit 243feca7 authored by Daniel Calviño Sánchez's avatar Daniel Calviño Sánchez
Browse files

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: default avatarDaniel Calviño Sánchez <danxuliu@gmail.com>
parent 5f1713f9
No related branches found
No related tags found
No related merge requests found
...@@ -81,7 +81,7 @@ ...@@ -81,7 +81,7 @@
} }
/* Css replaced elements don't have ::after nor ::before */ /* 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 { &.icon-loading {
background-image: url('../img/loading.gif'); background-image: url('../img/loading.gif');
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment