1,763 questions
1
vote
0
answers
66
views
Why does a floated block create an anonymous block box?
In general, there is the next slide from the presentation the life of a pixel:
Quote from spec:
A block container box either contains only block-level boxes or establishes an inline formatting ...
2
votes
2
answers
366
views
What is the correct value of HTML <dialog>'s `returnValue` per spec when the dialog is canceled with Esc?
Check this dialog box implementation.
const open = document.getElementById('open')
const dlg = document.getElementById('dlg')
open.addEventListener('click', function () {
dlg.showModal()
})
dlg....
9
votes
1
answer
556
views
Which HTML elements can break into several rectangles?
CSS styles such as display: inline allow <span> and <div> to break (fragment) into several rectangles on separate lines, whereas <fieldset> and <button> with the same CSS rules ...
2
votes
3
answers
206
views
CSS of <use> element inconsistent across browsers and within browsers
The following code yields one circle in Firefox, but two circles in Chrome:
.foo {
visibility: hidden;
}
.foo:nth-child(2) {
visibility: visible !important;
}
<svg>
<circle class="foo" ...
0
votes
0
answers
40
views
Are the conditions for Vue-hydratability specified?
Is there a specification of the HTML a server has to produce so that Vue (3.x) can hydrate it?
"Easy": get a Vue app server side rendered (we have successfully used Nuxt in production)
&...
6
votes
1
answer
244
views
Why are you allowed to assign a field to itself?
I've been coding in Java since 2005 and never thought that the code like that would actually be compilable:
public class FooClass {
public static final String FOO = FooClass.FOO;
}
Intellij ...
5
votes
2
answers
159
views
16/32/64 bit multiplication inconsistency in C++
I am confused in C++ specification and I don't understand the following (I found similar topics but not exactly my question)
Given the following source:
int16_t a = 10000;
int16_t b = 20000;
int32_t c ...
-4
votes
1
answer
238
views
Why is the Unicode micro character µ (U+00B5) not included as a valid XML NameChar? [closed]
In composing an XML DTD, <!ENTITY % linearunit "( ... | ... | ...)"> listing all of the acceptable strings for linear measurement units in an application, I've just become aware that &...
0
votes
1
answer
165
views
When do custom elements invoke lifecycle hook formStateRestoreCallback with reason argument equal to "autocomplete"?
I tried to find examples where the formStateRestoreCallback lifecycle hook could return autocomplete as the second reason argument, but I didn't find anything.
Here is a quote from the specification:
...
1
vote
1
answer
50
views
Spec array transformation using jolt
i have two kinds of input the jsons
case 1:
{
"MainObject": {
"MainObjectDetails": {
"SubDetails": {
"ObjectProperty": "1"
}
...
0
votes
0
answers
208
views
Asp.NET Core: OpenAPI buildtime generated specs file does not include prefix
I am trying to generate a specifications file at buildtime for my controllers using OpenApi.
I included this in the csproj file:
<OpenApiDocumentsDirectory>$(MSBuildProjectDirectory)/ApiSpecs<...
0
votes
0
answers
13
views
How to deal with JPA Speficication when use @OneToMany relation?
The code is a simple example that helps explain the problem I have.
These are the entities I have:
@Entity
@Data
public class Parent {
@Id
@Column(nullable = false, updatable = false)
@...
1
vote
0
answers
47
views
Create OpenAPI examples from OpenAPI ruleset?
I'm wondering if there are extensions, libraries or applications which can help create examples from OpenAPI rulesets used for linting OpenAPI specifications.
I've been googling for "generate ...
0
votes
1
answer
53
views
Spring Data specifications with correlated subquery
How one using spring data specifications can do the equivalent of this:
select a.*, (select count(1) from b where b.a_id = a.id) as count
from a;
If this is not possible is there an equivalent?
6
votes
1
answer
89
views
Is string slice-by-copy a CPython implementation detail or part of spec?
Python does slice-by-copy on strings: Does Python do slice-by-reference on strings?
Is this something that all implementations of Python need to respect, or is it just a detail of the CPython ...
0
votes
2
answers
144
views
Will SEEK_SET SEEK_CUR SEEK_END not be 0,1,2 on any C lib?
For whence parameter of fseek (or lseek in POSIX), some languages that calls C lib assume SEEK_SET, SEEK_CUR, SEEK_END are 0,1,2, respectively, such as gfortran, Nim [^py].
[^py]: while Python's seek ...
0
votes
2
answers
68
views
Conflicting JVM specs between what can be verified run and what is debuggable wrt local variables?
On one hand the Java class spec says:
There may be no more than one LocalVariableTable attribute per local variable in the attributes table of a Code attribute.
But on the other hand lots of ...
-2
votes
1
answer
142
views
How can I improve the accuracy of ChatGPT in Prolog?
How can I design a ChatGPT alternative that recognises patterns in algorithm specifications in Prolog and maps input to output?
I need recursive patterns in nested list form with [r,"a"] for ...
1
vote
0
answers
167
views
Does the GraphQL specification allow for empty objects in a response?
Is it valid for a GraphQL server to return an empty object (i.e. {}) as a field's value?
For example, given a GraphQL schema like
type Query {
person: Person
}
type Person {
name: String
}
and a ...
0
votes
1
answer
133
views
How does HTML parser interact with Speculative parser
Whatwg spec describes conception of the speculative HTML parsing.
So, there are many places in spec with the term active speculative parser. Spec says that HTML parser that owns an instance of ...
0
votes
0
answers
98
views
When can template.content return null?
Note: I asked this question in the WHATWG repo, but the issue was closed almost instantly with a reason stating something like "this sort of question is better suited for SO".
The WHATWG ...
0
votes
1
answer
69
views
JOLT SPEC: Shift into existing array
Currently I have the following INPUT JSON.
The "temp"-Object has been added
with the help of a default spec.
{
"items": [
{
"description": "myDescription&...
3
votes
1
answer
29
views
What are the allowed values / source spec for umlRole in a metaconstraint?
In a UML definition of a metamodel it is possible to define metaconstraints e.g.
<<metaconstraint>> umlRole="classifier"
<<metaconstraint>> umlRole = "class"...
2
votes
1
answer
119
views
Why including padding to the nearest scrollport changes the threshold position of the sticky element where it sticks?
As per my understanding, for Sticky Positioning Scheme, the CSS spec defines that the insets applied to an sticky element is relative to the edges of the nearest scrollport which then forms the Sticky ...
1
vote
0
answers
87
views
Django miss static files after packaging with pyinstaller
I packaged my django project with pyinstaller, my project tree is like below:
I did all bellow steps:
Copy all static file into static/ with python manage.py collectstatic
Add all static file in ....