Re: [w3c/editing] When should UA synthesize heights of an element? (#70)

> browsers should not draw carets in zero height elements

I'm not sure about that. This should perhaps depend on the `overflow` style. I'd need to check what browsers do currently, but I believe that in some of them you'll be able to programmatically put the selection inside a zero height *block* and it will be rendered. But I don't think that anyone cares that much about this as all of us fill those blocks with `<br>`s anyway (that's why I don't even know what browsers do in this case).

Also, e.g. Chrome will automatically change styling of an element with cE=true, so it has a non-zero height: https://jsfiddle.net/qy7xw8jj/ (compare with e.g. Firefox):

<img width="1261" alt="screen shot 2016-09-05 at 15 55 09" src="https://cloud.githubusercontent.com/assets/156149/18249941/291d6c66-7381-11e6-88c2-880552a5a84f.png">


> browsers should ensure that the caret can be placed in elements programatically independently of the height of the element

+1

> It is up to JavaScript authors to ensure that the element the caret is placed in has height > 0 if they want the caret to be seen?

+1 (with the notion of the 1st point, because we wouldn't mind, I think, if the caret was rendered visible despite height==0; but this is up to the browser to decide)

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/editing/issues/70#issuecomment-244753411

Received on Monday, 5 September 2016 13:59:52 UTC