w3c

Understanding the wrapping behavior of inline-block elements with overflow:hidden

守給你的承諾、 提交于 2019-12-10 15:29:18
问题 I want two inline-block elements to remain on the same row, regardless of their width or margin . The quick solution is to apply white-space: nowrap to the container. Flex and floats are alternatives that also work. I'm just stuck on figuring out a particular wrapping behavior with white-space: normal . Here's the situation: There are two inline-block elements in a block-level container. The width of the container is fixed at 500px. The width of each child is fixed at 200px. The container is

will <frameset> work with HTML5?

穿精又带淫゛_ 提交于 2019-12-10 14:23:04
问题 I have these webapplications build in old style HTML, including [framesets] to speed up the GUI of the administration. Its not accessable by SEO etc. so thats not the issue here, it was all based on speed and minimizing reload at the time. Now we would like to transform these applications and have begun to investigate HTML5 for the purpose. Ofcause there is AJAX and db-storage etc. to speed up the interface with the new standards, but our question is really: is IFRAMES and FRAMESETS going to

CORS obsolete, what does that mean?

只谈情不闲聊 提交于 2019-12-10 10:13:09
问题 I just read on Wikipedia (based on W3 minutes) that CORS is now obsolete: https://en.wikipedia.org/wiki/Cross-origin_resource_sharing From the meeting minutes at https://www.w3.org/2017/08/16-webappsec-minutes.html#item03 Obsoleting CORS dveditz: I raised on the list obsoleting CORS. The spec is old and doesn't reflect what browsers actually do scribe ... ongoing work is in Fetch UNKNOWN_SPEAKER: so it's not useful to have CORS sitting around ... mark as Obsolete and point to replacement ...

What is the point of using W3C valid badges? [closed]

天大地大妈咪最大 提交于 2019-12-10 03:39:51
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 7 years ago . I'm talking about these. Yeah, I know they are intended to show that the page conforms to the standards and should link to page

websocket for binary transfer of data & decode

試著忘記壹切 提交于 2019-12-09 15:47:08
问题 I was reading through the specification and many examples about usage of websockets. Almost all of them talk about UTF-8 or ascii message transfer using websockets. The latest Hybi websocket spec requested support for binary transfer. REQ 6 in hybi spec Also i read somewhere that chrome supports hybi. But latest release Chrome 7.0 works only when draft-hixie is selected in pywebsocket config. Does any browser have support for hybi spec? Even if it is dev, its ok. 回答1: It may be a while before

Can a td be inside a td

a 夏天 提交于 2019-12-09 08:25:46
问题 It may be a nonsense question, and I know we have to follow standards as much as possible. But can <td> be a direct child of another <td> , like this: <td class="parent"> <td class="child"> <!-- Some info --> </td> </td> Or it's obligatory to create another <table> with a new <tr> before adding the <td> , which can become heavily populated with table tags and become clustered... 回答1: not directly but you could place table inside td <td class="parent"> <table><tr> <td class="child"> <!-- Some

What's the difference between BlobBuilder and the new Blob constructor?

瘦欲@ 提交于 2019-12-08 23:19:45
问题 The W3 announced that they intend to deprecate the BlobBuilder API in preference for the new Blob API. If I am already using BlobBuilder in a JavaScript app, how can I convert to using this new Blob API? The old WebKitBlobBuilder is still available in the latest WebKit (and Chrome Canary), but it will soon be removed. Before you could write something like this: var bb = new BlobBuilder(); bb.append(arrayBuffer); var blob = bb.getBlob(mimeString); How could this be rewritten to use the new

What's the correct behaviour of SVG “defs” tag in CSS?

♀尐吖头ヾ 提交于 2019-12-08 20:29:55
问题 When one write this SVG code, with embedded CSS: <?xml version="1.0" encoding="utf-8"?> <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" viewBox="0 0 100 100"> <style> defs rect { fill: blue; } </style> <defs> <rect id="rectangle" x="5" y="10" width="3" height="3"/> </defs> <rect x="5" y="5" width="3" height="3"/> <use xlink:href="#rectangle"/> </svg> Then, Chrome does apply the "fill:blue" rule to the second rect through the use tag (so first

XML Spec and UTF-16

雨燕双飞 提交于 2019-12-08 17:19:00
问题 Section 4.3.3 and Appendix F of the XML 1.0 spec speak about UTF-16, the byte order mark (BOM) in UTF-16 encoded data streams, and the XML encoding declaration. From the information in those sections, it would seem that a byte order mark is required in UTF-16 documents. But the summary chart in Appendix F gives a scenario where a UTF-16 input does not have a Byte order mark, but this scenario has an xml declaration. According to section 4.3.3, a UTF-16 encoded document does not require an

JavaScript tags, performance and W3C

。_饼干妹妹 提交于 2019-12-08 12:04:11
问题 Today I was looking for website optimization content and I found an article talking about move JavaScript scripts to the bottom of the HTML page. Is this valid with W3C's recommendations? I learned that all JavaScript must be inside of head tag... Thank you. 回答1: From the documentation: This element may appear any number of times in the HEAD or BODY of an HTML document. 回答2: It is valid. Script tags can be in both the head and body. Moving the script tags to just prior to the closing body tag