Closed
Bug 230554
Opened 21 years ago
Closed 20 years ago
:root - overflow property is not applied to the viewport
Categories
(Core :: CSS Parsing and Computation, enhancement)
Core
CSS Parsing and Computation
Tracking
()
RESOLVED
FIXED
People
(Reporter: annevk, Assigned: dbaron)
References
Details
(Keywords: css2, testcase)
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7a) Gecko/20031219 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7a) Gecko/20031219 HTML and XHTML test cases coming up. Reproducible: Always Steps to Reproduce:
Reporter | ||
Comment 1•21 years ago
|
||
According to CSS21 <http://www.w3.org/TR/CSS21/visufx.html#overflow>: > HTML UAs may apply the overflow property from the BODY or HTML elements to the > viewport. Mozilla fixed a bug about this for the BODY element, but now (?) there is a problem with the HTML element. <http://annevankesteren.nl/test/css/p/overflow/root-overflow-auto.htm> 'text/html' test case for 'overflow:auto;' <http://annevankesteren.nl/test/css/p/overflow/root-overflow-auto.xhtml> 'application/xhtml+xml' test case for 'overflow:auto;' <http://annevankesteren.nl/test/css/p/overflow/root-overflow-scroll.htm> 'text/html' test case for 'overflow:scroll;' <http://annevankesteren.nl/test/css/p/overflow/root-overflow-scroll.xhtml> 'application/xhtml+xml' test case for 'overflow:scroll;' Now I'm not sure if Mozilla should behave the same for XHTML (XML) documents, but according to the CSS21 specification we may support it for HTML and I think we should.
Comment 2•21 years ago
|
||
We apply overflow:hidden on both <body> and <html> to the viewport in HTML documents (or at least should). That's as far as we need to go, imo....
Comment 3•21 years ago
|
||
In the CSS spec, HTML != XHTML. It says HTML, not XHTML. Thus it doesn't apply to XHTML. Does that make this bug INVALID?
Reporter | ||
Comment 4•21 years ago
|
||
No, only partly. Because we don't do it correct for HTML elements. See the 2 text/html test cases. (I wonder, how would you have to do this for XML? With something like ::viewport?)
Reporter | ||
Updated•21 years ago
|
Severity: normal → enhancement
OS: Windows XP → All
Hardware: PC → All
The fix in bug 234851 makes the viewport overflow:auto in the first two cases and overflow:scroll in the latter two cases, which is I think what Anne wants. As per Hixie, in XHTML we probably should not propagate from HTML or BODY. Currently we do. Turning off propagation from BODY would be quite easy. Turning off propagation from the root for XHTML is quite hard because it requires fixing some difficult bugs about reconstruction of the root frame with scrollbars. And, we'd have to make the viewport explicitly stylable, possibly in advance of any standard for that.
Reporter | ||
Comment 7•20 years ago
|
||
For HTML issues, this bug is fixed. The XML issues should probably be moved to another bug. These issues are: - 'overflow' is placed from xhtml|body, xhtml|html or *|*:root to the viewport - implementing '@-moz-viewport' Shall I file them?
Keywords: qawanted
I don't want to implement these until the viewport rule has been standardized. Feel free to file the bugs though.
Reporter | ||
Comment 9•20 years ago
|
||
Filed bug 242646 and bug 242645. Marking this bug as fixed, since all the (still) existing issues have been moved to other bugs and main issue has been fixed by bug 234851.
You need to log in
before you can comment on or make changes to this bug.
Description
•